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_BOARD_PLATFORM := msm8994
18TARGET_BOOTLOADER_BOARD_NAME := angler
19
20TARGET_ARCH := arm64
21TARGET_ARCH_VARIANT := armv8-a
22TARGET_CPU_ABI := arm64-v8a
23TARGET_CPU_ABI2 :=
24TARGET_CPU_VARIANT := cortex-a53
25
26TARGET_2ND_ARCH := arm
27TARGET_2ND_ARCH_VARIANT := armv7-a-neon
28TARGET_2ND_CPU_ABI := armeabi-v7a
29TARGET_2ND_CPU_ABI2 := armeabi
30TARGET_2ND_CPU_VARIANT := cortex-a53.a57
31
32ENABLE_CPUSETS := true
33
34BOARD_KERNEL_BASE        := 0x00000000
35BOARD_KERNEL_PAGESIZE    := 4096
36BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
37BOARD_RAMDISK_OFFSET     := 0x02000000
38
39BOARD_KERNEL_CMDLINE := androidboot.hardware=angler androidboot.console=ttyHSL0 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-3 no_console_suspend
40BOARD_MKBOOTIMG_ARGS := --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --tags_offset $(BOARD_KERNEL_TAGS_OFFSET)
41
42BOARD_USES_ALSA_AUDIO := true
43BOARD_HAVE_BLUETOOTH := true
44BOARD_HAVE_BLUETOOTH_BCM := true
45BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/huawei/angler/bluetooth
46
47BOARD_USES_SECURE_SERVICES := true
48
49TARGET_NO_BOOTLOADER := true
50TARGET_NO_RADIOIMAGE := true
51TARGET_BOARD_INFO_FILE := device/huawei/angler/board-info.txt
52TARGET_NO_RPC := true
53
54BOARD_EGL_CFG := device/huawei/angler/egl.cfg
55
56# Shader cache config options
57# Maximum size of the  GLES Shaders that can be cached for reuse.
58# Increase the size if shaders of size greater than 12KB are used.
59MAX_EGL_CACHE_KEY_SIZE := 12*1024
60
61# Maximum GLES shader cache size for each app to store the compiled shader
62# binaries. Decrease the size if RAM or Flash Storage size is a limitation
63# of the device.
64MAX_EGL_CACHE_SIZE := 2048*1024
65
66USE_OPENGL_RENDERER := true
67TARGET_USES_ION := true
68TARGET_USES_C2D_COMPOSITION := true
69TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
70MAX_VIRTUAL_DISPLAY_DIMENSION := 2048
71
72HAVE_ADRENO_SOURCE:= false
73
74OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
75BOARD_CHARGER_DISABLE_INIT_BLANK := true
76# Enable auto suspend in poweroff charging to save power
77BOARD_CHARGER_ENABLE_SUSPEND := true
78
79# Enable dex-preoptimization to speed up first boot sequence
80ifeq ($(HOST_OS),linux)
81  ifneq ($(TARGET_BUILD_VARIANT),eng)
82    ifeq ($(WITH_DEXPREOPT),)
83      WITH_DEXPREOPT := true
84    endif
85  endif
86endif
87
88TARGET_USERIMAGES_USE_EXT4 := true
89BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432
90BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432
91BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
92BOARD_USERDATAIMAGE_PARTITION_SIZE := 26503790080
93BOARD_CACHEIMAGE_PARTITION_SIZE := 104857600
94BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
95BOARD_FLASH_BLOCK_SIZE := 131072
96
97BOARD_HAL_STATIC_LIBRARIES := libdumpstate.angler
98
99TARGET_RECOVERY_FSTAB = device/huawei/angler/fstab.angler
100TARGET_COPY_OUT_VENDOR := vendor
101TARGET_RELEASETOOLS_EXTENSIONS := device/huawei/angler
102
103BOARD_SEPOLICY_DIRS += \
104	device/huawei/angler/sepolicy
105
106TARGET_USES_64_BIT_BINDER := true
107
108TARGET_USES_AOSP := true
109
110TARGET_USES_INTERACTION_BOOST := true
111
112TARGET_RECOVERY_UI_LIB := librecovery_ui_nanohub
113
114# Force camera module to be compiled only in 32-bit mode on 64-bit systems
115# Once camera module can run in the native mode of the system (either
116# 32-bit or 64-bit), the following line should be deleted
117BOARD_QTI_CAMERA_32BIT_ONLY := true
118
119# Wifi related defines
120BOARD_WPA_SUPPLICANT_DRIVER := NL80211
121WPA_SUPPLICANT_VERSION := VER_0_8_X
122BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
123BOARD_HOSTAPD_DRIVER := NL80211
124BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
125BOARD_WLAN_DEVICE := bcmdhd
126WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
127WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin"
128WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin"
129
130#GPS
131BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
132BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true
133
134#NFC
135NXP_CHIP_TYPE := 2
136
137# Testing related defines
138BOARD_PERFSETUP_SCRIPT := platform_testing/scripts/perf-setup/angler-setup.sh
139
140USE_CLANG_PLATFORM_BUILD := true
141
142-include vendor/huawei/angler/BoardConfigVendor.mk
143