Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 1 | # Primary Arch |
| 2 | TARGET_ARCH := arm64 |
| 3 | TARGET_ARCH_VARIANT := armv8-a |
| 4 | TARGET_CPU_VARIANT := generic |
| 5 | TARGET_CPU_ABI := arm64-v8a |
| 6 | |
| 7 | # Secondary Arch |
| 8 | TARGET_2ND_ARCH := arm |
| 9 | TARGET_2ND_ARCH_VARIANT := armv7-a-neon |
| 10 | TARGET_2ND_CPU_VARIANT := cortex-a15 |
| 11 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 12 | TARGET_2ND_CPU_ABI2 := armeabi |
| 13 | |
| 14 | TARGET_USES_64_BIT_BINDER := true |
| 15 | TARGET_SUPPORTS_32_BIT_APPS := true |
| 16 | TARGET_SUPPORTS_64_BIT_APPS := true |
| 17 | |
| 18 | TARGET_BOARD_PLATFORM := hikey |
| 19 | WITH_DEXPREOPT ?= true |
| 20 | USE_OPENGL_RENDERER := true |
| 21 | ANDROID_ENABLE_RENDERSCRIPT := true |
| 22 | |
| 23 | # BT configs |
| 24 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := "device/linaro/hikey/bluetooth" |
| 25 | BOARD_HAVE_BLUETOOTH := true |
| 26 | |
| 27 | # generic wifi |
| 28 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 29 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
Dmitry Shmidt | f433534 | 2016-04-05 12:04:36 -0700 | [diff] [blame] | 30 | BOARD_HOSTAPD_DRIVER := NL80211 |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 31 | CONFIG_DRIVER_NL80211 := y |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 32 | |
Dmitry Shmidt | 1ccc21d | 2016-07-28 13:47:54 -0700 | [diff] [blame^] | 33 | ifeq ($(TARGET_KERNEL_USE_4_1), true) |
| 34 | BOARD_KERNEL_CMDLINE := console=ttyAMA3,115200 androidboot.console=ttyAMA3 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime |
| 35 | else |
Yongqin Liu | 57c4c72 | 2016-07-07 21:06:39 +0800 | [diff] [blame] | 36 | BOARD_KERNEL_CMDLINE := console=ttyFIQ0 androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime |
Dmitry Shmidt | 1ccc21d | 2016-07-28 13:47:54 -0700 | [diff] [blame^] | 37 | endif |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 38 | |
| 39 | TARGET_NO_BOOTLOADER := true |
| 40 | TARGET_NO_KERNEL := false |
| 41 | TARGET_NO_RECOVERY := true |
| 42 | TARGET_HARDWARE_3D := true |
| 43 | BOARD_USES_GENERIC_AUDIO := true |
| 44 | USE_CAMERA_STUB := true |
| 45 | TARGET_USERIMAGES_USE_EXT4 := true |
Dmitry Shmidt | 3451a8a | 2016-02-08 11:08:29 -0800 | [diff] [blame] | 46 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736 |
Dmitry Shmidt | 2fc2fdd | 2016-01-27 12:59:03 -0800 | [diff] [blame] | 47 | ifeq ($(TARGET_USERDATAIMAGE_4GB), true) |
Dmitry Shmidt | dbfe6f9 | 2016-02-03 10:56:28 -0800 | [diff] [blame] | 48 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 1595915776 |
Dmitry Shmidt | 2fc2fdd | 2016-01-27 12:59:03 -0800 | [diff] [blame] | 49 | else |
Dmitry Shmidt | dbfe6f9 | 2016-02-03 10:56:28 -0800 | [diff] [blame] | 50 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 5588893184 |
Dmitry Shmidt | 2fc2fdd | 2016-01-27 12:59:03 -0800 | [diff] [blame] | 51 | endif |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 52 | BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 |
| 53 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 54 | BOARD_FLASH_BLOCK_SIZE := 131072 |
| 55 | TARGET_USE_PAN_DISPLAY := true |
| 56 | |
Yongqin Liu | 416a19b | 2016-03-23 21:35:50 +0800 | [diff] [blame] | 57 | # enable to use the CPUSETS feature |
| 58 | ENABLE_CPUSETS := true |
| 59 | |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 60 | BOARD_SEPOLICY_DIRS := device/linaro/hikey/sepolicy |
Dmitry Shmidt | 0f9fb2a | 2016-01-26 15:57:04 -0800 | [diff] [blame] | 61 | |
| 62 | ifeq ($(HOST_OS), linux) |
| 63 | ifeq ($(TARGET_SYSTEMIMAGES_USE_SQUASHFS), true) |
| 64 | BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := squashfs |
| 65 | endif |
| 66 | endif |