• 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_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
32BOARD_KERNEL_BASE        := 0x00000000
33BOARD_KERNEL_PAGESIZE    := 4096
34BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
35BOARD_RAMDISK_OFFSET     := 0x02000000
36
37BOARD_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
38BOARD_KERNEL_CMDLINE += loop.max_part=7
39
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_USES_GRALLOC1_ADAPTER := true
70TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
71MAX_VIRTUAL_DISPLAY_DIMENSION := 2048
72TARGET_USES_HWC2 := true
73VSYNC_EVENT_PHASE_OFFSET_NS := 2000000
74SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000
75NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
76
77HAVE_ADRENO_SOURCE:= false
78
79OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
80BOARD_CHARGER_DISABLE_INIT_BLANK := true
81# Enable auto suspend in poweroff charging to save power
82BOARD_CHARGER_ENABLE_SUSPEND := true
83
84TARGET_USERIMAGES_USE_EXT4 := true
85BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432
86BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432
87BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
88BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0
89# as of 3765811, inode usage was xxxx, use 4096 to be safe
90BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 4096
91BOARD_USERDATAIMAGE_PARTITION_SIZE := 26503790080
92BOARD_CACHEIMAGE_PARTITION_SIZE := 104857600
93BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
94BOARD_FLASH_BLOCK_SIZE := 131072
95
96TARGET_AUX_OS_VARIANT_LIST := angler
97
98TARGET_RECOVERY_FSTAB = device/huawei/angler/fstab.angler
99TARGET_COPY_OUT_VENDOR := vendor
100TARGET_RELEASETOOLS_EXTENSIONS := device/huawei/angler
101
102BOARD_SEPOLICY_DIRS += \
103	device/huawei/angler/sepolicy
104
105TARGET_USES_64_BIT_BINDER := true
106
107TARGET_USES_AOSP := true
108
109TARGET_USES_INTERACTION_BOOST := true
110
111TARGET_RECOVERY_UI_LIB := librecovery_ui_nanohub
112
113# Force camera module to be compiled only in 32-bit mode on 64-bit systems
114# Once camera module can run in the native mode of the system (either
115# 32-bit or 64-bit), the following line should be deleted
116BOARD_QTI_CAMERA_32BIT_ONLY := true
117
118# Wifi related defines
119BOARD_WPA_SUPPLICANT_DRIVER := NL80211
120WPA_SUPPLICANT_VERSION := VER_0_8_X
121BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
122BOARD_HOSTAPD_DRIVER := NL80211
123BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
124BOARD_WLAN_DEVICE := bcmdhd
125WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
126WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin"
127WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin"
128
129#GPS
130BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
131BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true
132
133#NFC
134NXP_CHIP_TYPE := 2
135
136# Testing related defines
137BOARD_PERFSETUP_SCRIPT := platform_testing/scripts/perf-setup/angler-setup.sh
138
139TARGET_FS_CONFIG_GEN += device/huawei/angler/config.fs
140
141DEVICE_MANIFEST_FILE := device/huawei/angler/manifest.xml
142DEVICE_MATRIX_FILE := device/huawei/angler/compatibility_matrix.xml
143
144-include vendor/huawei/angler/BoardConfigVendor.mk
145