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 17 TARGET_BOARD_PLATFORM := msm8994 18 TARGET_BOOTLOADER_BOARD_NAME := angler 19 20 TARGET_ARCH := arm64 21 TARGET_ARCH_VARIANT := armv8-a 22 TARGET_CPU_ABI := arm64-v8a 23 TARGET_CPU_ABI2 := 24 TARGET_CPU_VARIANT := cortex-a53 25 26 TARGET_2ND_ARCH := arm 27 TARGET_2ND_ARCH_VARIANT := armv7-a-neon 28 TARGET_2ND_CPU_ABI := armeabi-v7a 29 TARGET_2ND_CPU_ABI2 := armeabi 30 TARGET_2ND_CPU_VARIANT := cortex-a53.a57 31 32 ENABLE_CPUSETS := true 33 34 BOARD_KERNEL_BASE := 0x00000000 35 BOARD_KERNEL_PAGESIZE := 4096 36 BOARD_KERNEL_TAGS_OFFSET := 0x01E00000 37 BOARD_RAMDISK_OFFSET := 0x02000000 38 39 BOARD_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 40 BOARD_KERNEL_CMDLINE += loop.max_part=7 41 42 BOARD_MKBOOTIMG_ARGS := --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --tags_offset $(BOARD_KERNEL_TAGS_OFFSET) 43 44 BOARD_USES_ALSA_AUDIO := true 45 BOARD_HAVE_BLUETOOTH := true 46 BOARD_HAVE_BLUETOOTH_BCM := true 47 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/huawei/angler/bluetooth 48 49 BOARD_USES_SECURE_SERVICES := true 50 51 TARGET_NO_BOOTLOADER := true 52 TARGET_NO_RADIOIMAGE := true 53 TARGET_BOARD_INFO_FILE := device/huawei/angler/board-info.txt 54 TARGET_NO_RPC := true 55 56 BOARD_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. 61 MAX_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. 66 MAX_EGL_CACHE_SIZE := 2048*1024 67 68 USE_OPENGL_RENDERER := true 69 TARGET_USES_ION := true 70 TARGET_USES_C2D_COMPOSITION := true 71 TARGET_USES_GRALLOC1_ADAPTER := true 72 TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true 73 MAX_VIRTUAL_DISPLAY_DIMENSION := 2048 74 TARGET_USES_HWC2 := true 75 VSYNC_EVENT_PHASE_OFFSET_NS := 2000000 76 SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000 77 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 78 79 HAVE_ADRENO_SOURCE:= false 80 81 OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so 82 BOARD_CHARGER_DISABLE_INIT_BLANK := true 83 # Enable auto suspend in poweroff charging to save power 84 BOARD_CHARGER_ENABLE_SUSPEND := true 85 86 TARGET_USERIMAGES_USE_EXT4 := true 87 BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432 88 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432 89 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472 90 BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0 91 # as of 3765811, inode usage was xxxx, use 4096 to be safe 92 BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 4096 93 BOARD_USERDATAIMAGE_PARTITION_SIZE := 26503790080 94 BOARD_CACHEIMAGE_PARTITION_SIZE := 104857600 95 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 96 BOARD_FLASH_BLOCK_SIZE := 131072 97 98 TARGET_AUX_OS_VARIANT_LIST := angler 99 100 TARGET_RECOVERY_FSTAB = device/huawei/angler/fstab.angler 101 TARGET_COPY_OUT_VENDOR := vendor 102 TARGET_RELEASETOOLS_EXTENSIONS := device/huawei/angler 103 104 BOARD_SEPOLICY_DIRS += \ 105 device/huawei/angler/sepolicy 106 107 TARGET_USES_64_BIT_BINDER := true 108 109 TARGET_USES_AOSP := true 110 111 TARGET_USES_INTERACTION_BOOST := true 112 113 TARGET_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 118 BOARD_QTI_CAMERA_32BIT_ONLY := true 119 120 # Wifi related defines 121 BOARD_WPA_SUPPLICANT_DRIVER := NL80211 122 WPA_SUPPLICANT_VERSION := VER_0_8_X 123 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd 124 BOARD_HOSTAPD_DRIVER := NL80211 125 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd 126 BOARD_WLAN_DEVICE := bcmdhd 127 WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" 128 WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" 129 WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" 130 131 #GPS 132 BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM) 133 BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true 134 135 #NFC 136 NXP_CHIP_TYPE := 2 137 138 # Testing related defines 139 BOARD_PERFSETUP_SCRIPT := platform_testing/scripts/perf-setup/angler-setup.sh 140 141 USE_CLANG_PLATFORM_BUILD := true 142 143 TARGET_FS_CONFIG_GEN += device/huawei/angler/config.fs 144 145 -include vendor/huawei/angler/BoardConfigVendor.mk 146