• 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
46BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/hammerhead/bluetooth
47
48# Wifi related defines
49WPA_SUPPLICANT_VERSION      := VER_0_8_X
50BOARD_WLAN_DEVICE           := bcmdhd
51BOARD_WPA_SUPPLICANT_DRIVER := NL80211
52BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
53BOARD_HOSTAPD_DRIVER        := NL80211
54BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
55WIFI_DRIVER_FW_PATH_PARAM   := "/sys/module/bcmdhd/parameters/firmware_path"
56WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
57WIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
58
59BOARD_USES_SECURE_SERVICES := true
60
61TARGET_NO_RADIOIMAGE := true
62TARGET_BOARD_PLATFORM := msm8974
63TARGET_BOOTLOADER_BOARD_NAME := hammerhead
64TARGET_BOARD_INFO_FILE := device/lge/hammerhead/board-info.txt
65BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
66TARGET_NO_RPC := true
67
68BOARD_EGL_CFG := device/lge/hammerhead/egl.cfg
69
70USE_OPENGL_RENDERER := true
71VSYNC_EVENT_PHASE_OFFSET_NS := 7500000
72SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
73TARGET_USES_ION := true
74
75TARGET_USERIMAGES_USE_EXT4 := true
76BOARD_BOOTIMAGE_PARTITION_SIZE := 23068672
77BOARD_RECOVERYIMAGE_PARTITION_SIZE := 23068672
78BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
79BOARD_USERDATAIMAGE_PARTITION_SIZE := 13725837312
80BOARD_CACHEIMAGE_PARTITION_SIZE := 734003200
81BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
82BOARD_FLASH_BLOCK_SIZE := 131072
83
84BOARD_CHARGER_DISABLE_INIT_BLANK := true
85BOARD_CHARGER_ENABLE_SUSPEND := true
86
87TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
88TARGET_RECOVERY_UI_LIB := librecovery_ui_hammerhead
89TARGET_RECOVERY_FSTAB = device/lge/hammerhead/fstab.hammerhead
90
91TARGET_RELEASETOOLS_EXTENSIONS := device/lge/hammerhead
92
93PDK_PLATFORM_ZIP_PRODUCT_BINARIES := device/lge/hammerhead-kernel/vmlinux.bz2
94
95BOARD_HAL_STATIC_LIBRARIES := libdumpstate.hammerhead
96
97BOARD_SEPOLICY_DIRS := \
98       device/lge/hammerhead/sepolicy
99
100# The list below is order dependent
101BOARD_SEPOLICY_UNION := \
102       device.te \
103       app.te \
104       file_contexts
105
106HAVE_ADRENO_SOURCE:= false
107
108OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
109TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
110
111TARGET_TOUCHBOOST_FREQUENCY:= 1200
112
113-include vendor/lge/hammerhead/BoardConfigVendor.mk
114