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 |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 4 | TARGET_CPU_ABI := arm64-v8a |
| 5 | |
| 6 | # Secondary Arch |
| 7 | TARGET_2ND_ARCH := arm |
Dmitry Shmidt | 0b1d49a | 2017-08-29 09:46:27 -0700 | [diff] [blame] | 8 | TARGET_2ND_ARCH_VARIANT := armv8-a |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 9 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 10 | TARGET_2ND_CPU_ABI2 := armeabi |
| 11 | |
| 12 | TARGET_USES_64_BIT_BINDER := true |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 13 | |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 14 | USE_OPENGL_RENDERER := true |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 15 | |
| 16 | # BT configs |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 17 | BOARD_HAVE_BLUETOOTH := true |
| 18 | |
John Stultz | fbb84c4 | 2018-06-19 15:43:16 -0700 | [diff] [blame] | 19 | # HACK! hikey64_only doesn't build w/ VNDK_VERSION=current |
| 20 | # This is due to software codecs being required but only |
| 21 | # building for 32bit. Remove the conditional once 64bit |
| 22 | # soft-codecs work |
| 23 | ifeq ($(filter hikey64, $(TARGET_DEVICE)),) |
John Stultz | 3424dc3 | 2018-04-11 15:37:34 -0700 | [diff] [blame] | 24 | # enable Treble |
| 25 | PRODUCT_FULL_TREBLE_OVERRIDE := true |
| 26 | BOARD_VNDK_VERSION := current |
John Stultz | fbb84c4 | 2018-06-19 15:43:16 -0700 | [diff] [blame] | 27 | endif |
John Stultz | 3424dc3 | 2018-04-11 15:37:34 -0700 | [diff] [blame] | 28 | |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 29 | # generic wifi |
| 30 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 31 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
Dmitry Shmidt | f433534 | 2016-04-05 12:04:36 -0700 | [diff] [blame] | 32 | BOARD_HOSTAPD_DRIVER := NL80211 |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 33 | |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 34 | TARGET_NO_BOOTLOADER := true |
| 35 | TARGET_NO_KERNEL := false |
| 36 | TARGET_NO_RECOVERY := true |
| 37 | TARGET_HARDWARE_3D := true |
| 38 | BOARD_USES_GENERIC_AUDIO := true |
| 39 | USE_CAMERA_STUB := true |
| 40 | TARGET_USERIMAGES_USE_EXT4 := true |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 41 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 42 | TARGET_USE_PAN_DISPLAY := true |
| 43 | |
Chia-I Wu | 2b61444 | 2017-10-19 15:07:35 -0700 | [diff] [blame] | 44 | TARGET_USES_HWC2 := true |
Chia-I Wu | e24fae6 | 2017-04-24 13:49:38 -0700 | [diff] [blame] | 45 | |
Ben Fennema | 52301e4 | 2017-10-17 12:24:04 -0700 | [diff] [blame] | 46 | TARGET_AUX_OS_VARIANT_LIST := neonkey argonkey |
Dmitry Shmidt | c3273fc | 2017-07-31 15:36:15 -0700 | [diff] [blame] | 47 | |
Trevor Drake | 4c3fead | 2017-02-14 01:19:09 +0000 | [diff] [blame] | 48 | BOARD_SEPOLICY_DIRS += device/linaro/hikey/sepolicy |
John Stultz | d497f63 | 2017-05-30 23:51:33 -0700 | [diff] [blame] | 49 | BOARD_SEPOLICY_DIRS += system/bt/vendor_libs/linux/sepolicy |
Dmitry Shmidt | 0f9fb2a | 2016-01-26 15:57:04 -0800 | [diff] [blame] | 50 | |
Michael Schwartz | 5eb5e96 | 2017-04-06 13:37:15 -0700 | [diff] [blame] | 51 | DEVICE_MANIFEST_FILE := device/linaro/hikey/manifest.xml |
Yifan Hong | c024f4b | 2017-05-09 15:37:51 -0700 | [diff] [blame] | 52 | DEVICE_MATRIX_FILE := device/linaro/hikey/compatibility_matrix.xml |
Michael Schwartz | 5eb5e96 | 2017-04-06 13:37:15 -0700 | [diff] [blame] | 53 | |
Ben Fennema | 52301e4 | 2017-10-17 12:24:04 -0700 | [diff] [blame] | 54 | ifneq ($(TARGET_SENSOR_MEZZANINE),) |
| 55 | DEVICE_MANIFEST_FILE += device/linaro/hikey/sensorhal/manifest.xml |
Sahaj Sarup | 9a61afa | 2017-11-07 20:58:21 +0000 | [diff] [blame] | 56 | DEVICE_MANIFEST_FILE += device/linaro/hikey/vr/manifest.xml |
Ben Fennema | 52301e4 | 2017-10-17 12:24:04 -0700 | [diff] [blame] | 57 | endif |
| 58 | |
Dmitry Shmidt | 0f9fb2a | 2016-01-26 15:57:04 -0800 | [diff] [blame] | 59 | ifeq ($(HOST_OS), linux) |
| 60 | ifeq ($(TARGET_SYSTEMIMAGES_USE_SQUASHFS), true) |
| 61 | BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := squashfs |
| 62 | endif |
| 63 | endif |