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_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 45BOARD_HAVE_BLUETOOTH := true 46BOARD_HAVE_BLUETOOTH_BCM := true 47BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/huawei/angler/bluetooth 48 49BOARD_USES_SECURE_SERVICES := true 50 51TARGET_NO_BOOTLOADER := true 52TARGET_NO_RADIOIMAGE := true 53TARGET_BOARD_INFO_FILE := device/huawei/angler/board-info.txt 54TARGET_NO_RPC := true 55 56BOARD_EGL_CFG := device/huawei/angler/egl.cfg 57 58# Shader cache config options 59# Maximum size of the GLES Shaders that can be cached for reuse. 60# Increase the size if shaders of size greater than 12KB are used. 61MAX_EGL_CACHE_KEY_SIZE := 12*1024 62 63# Maximum GLES shader cache size for each app to store the compiled shader 64# binaries. Decrease the size if RAM or Flash Storage size is a limitation 65# of the device. 66MAX_EGL_CACHE_SIZE := 2048*1024 67 68USE_OPENGL_RENDERER := true 69TARGET_USES_ION := true 70TARGET_USES_C2D_COMPOSITION := true 71TARGET_USES_GRALLOC1_ADAPTER := true 72TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true 73MAX_VIRTUAL_DISPLAY_DIMENSION := 2048 74TARGET_USES_HWC2 := true 75VSYNC_EVENT_PHASE_OFFSET_NS := 2000000 76SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000 77NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 78 79HAVE_ADRENO_SOURCE:= false 80 81OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so 82BOARD_CHARGER_DISABLE_INIT_BLANK := true 83# Enable auto suspend in poweroff charging to save power 84BOARD_CHARGER_ENABLE_SUSPEND := true 85 86TARGET_USERIMAGES_USE_EXT4 := true 87BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432 88BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432 89BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472 90BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0 91# as of 3765811, inode usage was xxxx, use 4096 to be safe 92BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 4096 93BOARD_USERDATAIMAGE_PARTITION_SIZE := 26503790080 94BOARD_CACHEIMAGE_PARTITION_SIZE := 104857600 95BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 96BOARD_FLASH_BLOCK_SIZE := 131072 97 98TARGET_AUX_OS_VARIANT_LIST := angler 99 100TARGET_RECOVERY_FSTAB = device/huawei/angler/fstab.angler 101TARGET_COPY_OUT_VENDOR := vendor 102TARGET_RELEASETOOLS_EXTENSIONS := device/huawei/angler 103 104BOARD_SEPOLICY_DIRS += \ 105 device/huawei/angler/sepolicy 106 107TARGET_USES_64_BIT_BINDER := true 108 109TARGET_USES_AOSP := true 110 111TARGET_USES_INTERACTION_BOOST := true 112 113TARGET_RECOVERY_UI_LIB := librecovery_ui_nanohub 114 115# Force camera module to be compiled only in 32-bit mode on 64-bit systems 116# Once camera module can run in the native mode of the system (either 117# 32-bit or 64-bit), the following line should be deleted 118BOARD_QTI_CAMERA_32BIT_ONLY := true 119 120# Wifi related defines 121BOARD_WPA_SUPPLICANT_DRIVER := NL80211 122WPA_SUPPLICANT_VERSION := VER_0_8_X 123BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd 124BOARD_HOSTAPD_DRIVER := NL80211 125BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd 126BOARD_WLAN_DEVICE := bcmdhd 127WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" 128WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" 129WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" 130 131#GPS 132BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM) 133BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true 134 135#NFC 136NXP_CHIP_TYPE := 2 137 138# Testing related defines 139BOARD_PERFSETUP_SCRIPT := platform_testing/scripts/perf-setup/angler-setup.sh 140 141USE_CLANG_PLATFORM_BUILD := true 142 143TARGET_FS_CONFIG_GEN += device/huawei/angler/config.fs 144 145-include vendor/huawei/angler/BoardConfigVendor.mk 146