• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2013 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17TARGET_CPU_ABI := armeabi-v7a
18TARGET_CPU_ABI2 := armeabi
19TARGET_CPU_SMP := true
20TARGET_ARCH := arm
21TARGET_ARCH_VARIANT := armv7-a-neon
22TARGET_CPU_VARIANT := krait
23
24TARGET_NO_BOOTLOADER := true
25
26BOARD_KERNEL_BASE := 0x00000000
27BOARD_KERNEL_PAGESIZE := 2048
28
29BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=hammerhead user_debug=31 maxcpus=2 msm_watchdog_v2.enable=1
30BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02900000 --tags_offset 0x02700000
31
32# Shader cache config options
33# Maximum size of the  GLES Shaders that can be cached for reuse.
34# Increase the size if shaders of size greater than 12KB are used.
35MAX_EGL_CACHE_KEY_SIZE := 12*1024
36
37# Maximum GLES shader cache size for each app to store the compiled shader
38# binaries. Decrease the size if RAM or Flash Storage size is a limitation
39# of the device.
40MAX_EGL_CACHE_SIZE := 2048*1024
41
42BOARD_USES_ALSA_AUDIO := true
43
44BOARD_HAVE_BLUETOOTH := true
45BOARD_HAVE_BLUETOOTH_BCM := true
46
47ifeq ($(TARGET_PRODUCT),car_hammerhead)
48BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/hammerhead/bluetooth_car
49else
50BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/hammerhead/bluetooth
51endif
52
53# Wifi related defines
54WPA_SUPPLICANT_VERSION      := VER_0_8_X
55BOARD_WLAN_DEVICE           := bcmdhd
56BOARD_WPA_SUPPLICANT_DRIVER := NL80211
57BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
58BOARD_HOSTAPD_DRIVER        := NL80211
59BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
60WIFI_DRIVER_FW_PATH_PARAM   := "/sys/module/bcmdhd/parameters/firmware_path"
61WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
62WIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
63
64BOARD_USES_SECURE_SERVICES := true
65
66TARGET_NO_RADIOIMAGE := true
67TARGET_BOARD_PLATFORM := msm8974
68TARGET_BOOTLOADER_BOARD_NAME := hammerhead
69TARGET_BOARD_INFO_FILE := device/lge/hammerhead/board-info.txt
70BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
71TARGET_NO_RPC := true
72
73BOARD_EGL_CFG := device/lge/hammerhead/egl.cfg
74
75USE_OPENGL_RENDERER := true
76VSYNC_EVENT_PHASE_OFFSET_NS := 7500000
77SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
78TARGET_USES_ION := true
79
80# Enable dex-preoptimization to speed up first boot sequence
81ifeq ($(HOST_OS),linux)
82  ifeq ($(TARGET_BUILD_VARIANT),user)
83    ifeq ($(WITH_DEXPREOPT),)
84      WITH_DEXPREOPT := true
85    endif
86  endif
87endif
88DONT_DEXPREOPT_PREBUILTS := true
89
90TARGET_USERIMAGES_USE_EXT4 := true
91BOARD_BOOTIMAGE_PARTITION_SIZE := 23068672
92BOARD_RECOVERYIMAGE_PARTITION_SIZE := 23068672
93BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
94BOARD_USERDATAIMAGE_PARTITION_SIZE := 13725837312
95BOARD_CACHEIMAGE_PARTITION_SIZE := 734003200
96BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
97BOARD_FLASH_BLOCK_SIZE := 131072
98
99BOARD_CHARGER_ENABLE_SUSPEND := true
100
101TARGET_RECOVERY_FSTAB = device/lge/hammerhead/fstab.hammerhead
102
103TARGET_RELEASETOOLS_EXTENSIONS := device/lge/hammerhead
104
105BOARD_HAL_STATIC_LIBRARIES := libdumpstate.hammerhead
106
107BOARD_SEPOLICY_DIRS += \
108       device/lge/hammerhead/sepolicy
109
110# The list below is order dependent
111BOARD_SEPOLICY_UNION += \
112       app.te \
113       bluetooth_loader.te \
114       bridge.te \
115       camera.te \
116       device.te \
117       domain.te \
118       file.te \
119       hostapd.te \
120       irsc_util.te \
121       mediaserver.te \
122       mpdecision.te \
123       netmgrd.te \
124       platform_app.te \
125       qmux.te \
126       radio.te \
127       rild.te \
128       rmt.te \
129       sensors.te \
130       ssr.te \
131       surfaceflinger.te \
132       system_server.te \
133       tee.te \
134       thermald.te \
135       time.te \
136       ueventd.te \
137       vss.te \
138       wpa.te \
139       file_contexts \
140       genfs_contexts \
141       te_macros
142
143HAVE_ADRENO_SOURCE:= false
144
145OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
146TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
147
148TARGET_TOUCHBOOST_FREQUENCY:= 1200
149
150USE_DEVICE_SPECIFIC_QCOM_PROPRIETARY:= true
151USE_DEVICE_SPECIFIC_CAMERA:= true
152
153-include vendor/lge/hammerhead/BoardConfigVendor.mk
154
155# Enable Minikin text layout engine (will be the default soon)
156USE_MINIKIN := true
157
158# Include an expanded selection of fonts
159EXTENDED_FONT_FOOTPRINT := true
160