Home | History | Annotate | Download | only in angler
      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_MKBOOTIMG_ARGS := --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --tags_offset $(BOARD_KERNEL_TAGS_OFFSET)
     41 
     42 BOARD_USES_ALSA_AUDIO := true
     43 BOARD_HAVE_BLUETOOTH := true
     44 BOARD_HAVE_BLUETOOTH_BCM := true
     45 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/huawei/angler/bluetooth
     46 
     47 BOARD_USES_SECURE_SERVICES := true
     48 
     49 TARGET_NO_BOOTLOADER := true
     50 TARGET_NO_RADIOIMAGE := true
     51 TARGET_BOARD_INFO_FILE := device/huawei/angler/board-info.txt
     52 TARGET_NO_RPC := true
     53 
     54 BOARD_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.
     59 MAX_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.
     64 MAX_EGL_CACHE_SIZE := 2048*1024
     65 
     66 USE_OPENGL_RENDERER := true
     67 TARGET_USES_ION := true
     68 TARGET_USES_C2D_COMPOSITION := true
     69 TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
     70 MAX_VIRTUAL_DISPLAY_DIMENSION := 2048
     71 
     72 HAVE_ADRENO_SOURCE:= false
     73 
     74 OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
     75 BOARD_CHARGER_DISABLE_INIT_BLANK := true
     76 # Enable auto suspend in poweroff charging to save power
     77 BOARD_CHARGER_ENABLE_SUSPEND := true
     78 
     79 # Enable dex-preoptimization to speed up first boot sequence
     80 ifeq ($(HOST_OS),linux)
     81   ifneq ($(TARGET_BUILD_VARIANT),eng)
     82     ifeq ($(WITH_DEXPREOPT),)
     83       WITH_DEXPREOPT := true
     84     endif
     85   endif
     86 endif
     87 
     88 TARGET_USERIMAGES_USE_EXT4 := true
     89 BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432
     90 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432
     91 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
     92 BOARD_USERDATAIMAGE_PARTITION_SIZE := 26503790080
     93 BOARD_CACHEIMAGE_PARTITION_SIZE := 104857600
     94 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
     95 BOARD_FLASH_BLOCK_SIZE := 131072
     96 
     97 BOARD_HAL_STATIC_LIBRARIES := libdumpstate.angler
     98 
     99 TARGET_RECOVERY_FSTAB = device/huawei/angler/fstab.angler
    100 TARGET_COPY_OUT_VENDOR := vendor
    101 TARGET_RELEASETOOLS_EXTENSIONS := device/huawei/angler
    102 
    103 BOARD_SEPOLICY_DIRS += \
    104 	device/huawei/angler/sepolicy
    105 
    106 TARGET_USES_64_BIT_BINDER := true
    107 
    108 TARGET_USES_AOSP := true
    109 
    110 TARGET_USES_INTERACTION_BOOST := true
    111 
    112 TARGET_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
    117 BOARD_QTI_CAMERA_32BIT_ONLY := true
    118 
    119 # Wifi related defines
    120 BOARD_WPA_SUPPLICANT_DRIVER := NL80211
    121 WPA_SUPPLICANT_VERSION := VER_0_8_X
    122 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
    123 BOARD_HOSTAPD_DRIVER := NL80211
    124 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
    125 BOARD_WLAN_DEVICE := bcmdhd
    126 WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
    127 WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin"
    128 WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin"
    129 
    130 #GPS
    131 BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
    132 BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true
    133 
    134 #NFC
    135 NXP_CHIP_TYPE := 2
    136 
    137 # Testing related defines
    138 BOARD_PERFSETUP_SCRIPT := platform_testing/scripts/perf-setup/angler-setup.sh
    139 
    140 USE_CLANG_PLATFORM_BUILD := true
    141 
    142 -include vendor/huawei/angler/BoardConfigVendor.mk
    143