blob: dd1fadc594d6ba90cda6135bff16dd7f5e097b83 [file] [log] [blame]
Vishal Bhoje72c9202015-10-23 18:10:21 +01001# Primary Arch
2TARGET_ARCH := arm64
3TARGET_ARCH_VARIANT := armv8-a
4TARGET_CPU_VARIANT := generic
5TARGET_CPU_ABI := arm64-v8a
6
7# Secondary Arch
8TARGET_2ND_ARCH := arm
9TARGET_2ND_ARCH_VARIANT := armv7-a-neon
10TARGET_2ND_CPU_VARIANT := cortex-a15
11TARGET_2ND_CPU_ABI := armeabi-v7a
12TARGET_2ND_CPU_ABI2 := armeabi
13
14TARGET_USES_64_BIT_BINDER := true
15TARGET_SUPPORTS_32_BIT_APPS := true
16TARGET_SUPPORTS_64_BIT_APPS := true
17
18TARGET_BOARD_PLATFORM := hikey
19WITH_DEXPREOPT ?= true
20USE_OPENGL_RENDERER := true
21ANDROID_ENABLE_RENDERSCRIPT := true
22
23# BT configs
24BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := "device/linaro/hikey/bluetooth"
25BOARD_HAVE_BLUETOOTH := true
26
27# generic wifi
28WPA_SUPPLICANT_VERSION := VER_0_8_X
29BOARD_WPA_SUPPLICANT_DRIVER := NL80211
Dmitry Shmidtf4335342016-04-05 12:04:36 -070030BOARD_HOSTAPD_DRIVER := NL80211
Vishal Bhoje72c9202015-10-23 18:10:21 +010031CONFIG_DRIVER_NL80211 := y
Vishal Bhoje72c9202015-10-23 18:10:21 +010032
Dmitry Shmidt1ccc21d2016-07-28 13:47:54 -070033ifeq ($(TARGET_KERNEL_USE_4_1), true)
34BOARD_KERNEL_CMDLINE := console=ttyAMA3,115200 androidboot.console=ttyAMA3 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime
35else
Yongqin Liu57c4c722016-07-07 21:06:39 +080036BOARD_KERNEL_CMDLINE := console=ttyFIQ0 androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime
Dmitry Shmidt1ccc21d2016-07-28 13:47:54 -070037endif
Vishal Bhoje72c9202015-10-23 18:10:21 +010038
39TARGET_NO_BOOTLOADER := true
40TARGET_NO_KERNEL := false
41TARGET_NO_RECOVERY := true
42TARGET_HARDWARE_3D := true
43BOARD_USES_GENERIC_AUDIO := true
44USE_CAMERA_STUB := true
45TARGET_USERIMAGES_USE_EXT4 := true
Dmitry Shmidt3451a8a2016-02-08 11:08:29 -080046BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736
Dmitry Shmidt2fc2fdd2016-01-27 12:59:03 -080047ifeq ($(TARGET_USERDATAIMAGE_4GB), true)
Dmitry Shmidtdbfe6f92016-02-03 10:56:28 -080048BOARD_USERDATAIMAGE_PARTITION_SIZE := 1595915776
Dmitry Shmidt2fc2fdd2016-01-27 12:59:03 -080049else
Dmitry Shmidtdbfe6f92016-02-03 10:56:28 -080050BOARD_USERDATAIMAGE_PARTITION_SIZE := 5588893184
Dmitry Shmidt2fc2fdd2016-01-27 12:59:03 -080051endif
Vishal Bhoje72c9202015-10-23 18:10:21 +010052BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
53BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
54BOARD_FLASH_BLOCK_SIZE := 131072
55TARGET_USE_PAN_DISPLAY := true
56
Yongqin Liu416a19b2016-03-23 21:35:50 +080057# enable to use the CPUSETS feature
58ENABLE_CPUSETS := true
John Stultz5a6425a2016-07-05 13:58:00 -070059ENABLE_SCHEDBOOST := true
60# We may want to enable this later
61# but right now it doesn't build.
62#ENABLE_SCHED_BOOST := true
Yongqin Liu416a19b2016-03-23 21:35:50 +080063
Vishal Bhoje72c9202015-10-23 18:10:21 +010064BOARD_SEPOLICY_DIRS := device/linaro/hikey/sepolicy
Dmitry Shmidt0f9fb2a2016-01-26 15:57:04 -080065
66ifeq ($(HOST_OS), linux)
67ifeq ($(TARGET_SYSTEMIMAGES_USE_SQUASHFS), true)
68BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := squashfs
69endif
70endif