• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2015 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_ARCH := arm64
18TARGET_ARCH_VARIANT := armv8-a
19TARGET_CPU_ABI := arm64-v8a
20TARGET_CPU_ABI2 :=
21TARGET_CPU_VARIANT := cortex-a53
22
23TARGET_2ND_ARCH := arm
24TARGET_2ND_ARCH_VARIANT := armv7-a-neon
25TARGET_2ND_CPU_ABI := armeabi-v7a
26TARGET_2ND_CPU_ABI2 := armeabi
27TARGET_2ND_CPU_VARIANT := cortex-a53.a57
28
29ENABLE_CPUSETS := true
30
31TARGET_NO_BOOTLOADER := true
32
33BOARD_KERNEL_BASE        := 0x00000000
34BOARD_KERNEL_PAGESIZE    := 4096
35BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
36BOARD_RAMDISK_OFFSET     := 0x02000000
37
38BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=bullhead boot_cpus=0-5
39BOARD_KERNEL_CMDLINE += lpm_levels.sleep_disabled=1 msm_poweroff.download_mode=0
40BOARD_KERNEL_CMDLINE += loop.max_part=7
41
42BOARD_MKBOOTIMG_ARGS := --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --tags_offset $(BOARD_KERNEL_TAGS_OFFSET)
43
44BOARD_USES_ALSA_AUDIO := true
45AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
46
47BOARD_HAVE_BLUETOOTH := true
48BOARD_HAVE_BLUETOOTH_QCOM := true
49BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/bullhead/bluetooth
50BOARD_HAS_QCA_BT_ROME := true
51WCNSS_FILTER_USES_SIBS := true
52
53BOARD_HAS_QCOM_WLAN := true
54BOARD_WLAN_DEVICE := qcwcn
55WPA_SUPPLICANT_VERSION := VER_0_8_X
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_STA := "sta"
61WIFI_DRIVER_FW_PATH_AP  := "ap"
62
63BOARD_USES_SECURE_SERVICES := true
64
65#BOARD_HAS_FINGERPRINT_FPC := true
66
67TARGET_NO_RADIOIMAGE := true
68TARGET_BOARD_PLATFORM := msm8992
69TARGET_BOOTLOADER_BOARD_NAME := bullhead
70TARGET_BOARD_INFO_FILE := device/lge/bullhead/board-info.txt
71TARGET_NO_RPC := true
72
73BOARD_EGL_CFG := device/lge/bullhead/egl.cfg
74
75# Shader cache config options
76# Maximum size of the  GLES Shaders that can be cached for reuse.
77# Increase the size if shaders of size greater than 12KB are used.
78MAX_EGL_CACHE_KEY_SIZE := 12*1024
79
80# Maximum GLES shader cache size for each app to store the compiled shader
81# binaries. Decrease the size if RAM or Flash Storage size is a limitation
82# of the device.
83MAX_EGL_CACHE_SIZE := 2048*1024
84
85USE_OPENGL_RENDERER := true
86TARGET_USES_ION := true
87TARGET_USES_C2D_COMPOSITION := true
88TARGET_USES_GRALLOC1_ADAPTER := true
89TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
90TARGET_USES_HWC2 := true
91MAX_VIRTUAL_DISPLAY_DIMENSION := 2048
92VSYNC_EVENT_PHASE_OFFSET_NS := 2000000
93SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000
94NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
95
96
97TARGET_AUX_OS_VARIANT_LIST := bullhead
98
99HAVE_ADRENO_SOURCE:= false
100
101OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
102
103# Enable dex-preoptimization to speed up first boot sequence
104ifeq ($(HOST_OS),linux)
105  ifneq ($(TARGET_BUILD_VARIANT),eng)
106    ifeq ($(WITH_DEXPREOPT),)
107      WITH_DEXPREOPT := true
108    endif
109  endif
110endif
111
112TARGET_USERIMAGES_USE_EXT4 := true
113BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432
114BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432
115BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
116BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0
117# as of 3765008, inode usage was 3011, use 4096 to be safe
118BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 4096
119BOARD_USERDATAIMAGE_PARTITION_SIZE := 11649679360
120BOARD_CACHEIMAGE_PARTITION_SIZE := 100663296
121BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
122BOARD_FLASH_BLOCK_SIZE := 131072
123
124# Build a separate vendor.img
125TARGET_COPY_OUT_VENDOR := vendor
126
127TARGET_RECOVERY_FSTAB = device/lge/bullhead/fstab.bullhead
128
129TARGET_RELEASETOOLS_EXTENSIONS := device/lge/bullhead
130
131BOARD_CHARGER_ENABLE_SUSPEND := true
132
133BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
134BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true
135
136BOARD_SEPOLICY_DIRS += \
137    device/lge/bullhead/sepolicy
138
139TARGET_USES_64_BIT_BINDER := true
140
141TARGET_USES_AOSP := true
142TARGET_USES_INTERACTION_BOOST := true
143
144TARGET_RECOVERY_UI_LIB := librecovery_ui_nanohub
145
146# Force camera module to be compiled only in 32-bit mode on 64-bit systems
147# Once camera module can run in the native mode of the system (either
148# 32-bit or 64-bit), the following line should be deleted
149BOARD_QTI_CAMERA_32BIT_ONLY := true
150
151#NFC
152NXP_CHIP_TYPE := 2
153
154#Enable peripheral manager
155TARGET_PER_MGR_ENABLED := true
156
157USE_CLANG_PLATFORM_BUILD := true
158
159USE_CLANG_PLATFORM_BUILD := true
160
161TARGET_FS_CONFIG_GEN += device/lge/bullhead/config.fs
162
163-include vendor/lge/bullhead/BoardConfigVendor.mk
164
165# Testing related defines
166BOARD_PERFSETUP_SCRIPT := platform_testing/scripts/perf-setup/bullhead-setup.sh
167
168ifeq ($(TARGET_PRODUCT),aosp_bullhead_svelte)
169BOARD_KERNEL_CMDLINE += mem=1024M maxcpus=2
170MALLOC_SVELTE := true
171endif
172ifeq ($(TARGET_PRODUCT),bullhead_svelte)
173BOARD_KERNEL_CMDLINE += mem=1024M
174MALLOC_SVELTE := true
175endif
176