blob: c6fac23e24b70746dae08988a0f613e8cf801096 [file] [log] [blame]
Vishal Bhoje72c9202015-10-23 18:10:21 +01001# Primary Arch
2TARGET_ARCH := arm64
3TARGET_ARCH_VARIANT := armv8-a
Vishal Bhoje72c9202015-10-23 18:10:21 +01004TARGET_CPU_ABI := arm64-v8a
5
6# Secondary Arch
7TARGET_2ND_ARCH := arm
Dmitry Shmidt0b1d49a2017-08-29 09:46:27 -07008TARGET_2ND_ARCH_VARIANT := armv8-a
Vishal Bhoje72c9202015-10-23 18:10:21 +01009TARGET_2ND_CPU_ABI := armeabi-v7a
10TARGET_2ND_CPU_ABI2 := armeabi
11
12TARGET_USES_64_BIT_BINDER := true
Vishal Bhoje72c9202015-10-23 18:10:21 +010013
Vishal Bhoje72c9202015-10-23 18:10:21 +010014USE_OPENGL_RENDERER := true
Vishal Bhoje72c9202015-10-23 18:10:21 +010015
16# BT configs
Vishal Bhoje72c9202015-10-23 18:10:21 +010017BOARD_HAVE_BLUETOOTH := true
18
John Stultzfbb84c42018-06-19 15:43:16 -070019# 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
23ifeq ($(filter hikey64, $(TARGET_DEVICE)),)
John Stultz3424dc32018-04-11 15:37:34 -070024# enable Treble
25PRODUCT_FULL_TREBLE_OVERRIDE := true
26BOARD_VNDK_VERSION := current
John Stultzfbb84c42018-06-19 15:43:16 -070027endif
John Stultz3424dc32018-04-11 15:37:34 -070028
Vishal Bhoje72c9202015-10-23 18:10:21 +010029# generic wifi
30WPA_SUPPLICANT_VERSION := VER_0_8_X
31BOARD_WPA_SUPPLICANT_DRIVER := NL80211
Dmitry Shmidtf4335342016-04-05 12:04:36 -070032BOARD_HOSTAPD_DRIVER := NL80211
Vishal Bhoje72c9202015-10-23 18:10:21 +010033
Vishal Bhoje72c9202015-10-23 18:10:21 +010034TARGET_NO_BOOTLOADER := true
35TARGET_NO_KERNEL := false
36TARGET_NO_RECOVERY := true
37TARGET_HARDWARE_3D := true
38BOARD_USES_GENERIC_AUDIO := true
39USE_CAMERA_STUB := true
40TARGET_USERIMAGES_USE_EXT4 := true
Vishal Bhoje72c9202015-10-23 18:10:21 +010041BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
Vishal Bhoje72c9202015-10-23 18:10:21 +010042TARGET_USE_PAN_DISPLAY := true
43
Chia-I Wu2b614442017-10-19 15:07:35 -070044TARGET_USES_HWC2 := true
Chia-I Wue24fae62017-04-24 13:49:38 -070045
Ben Fennema52301e42017-10-17 12:24:04 -070046TARGET_AUX_OS_VARIANT_LIST := neonkey argonkey
Dmitry Shmidtc3273fc2017-07-31 15:36:15 -070047
Trevor Drake4c3fead2017-02-14 01:19:09 +000048BOARD_SEPOLICY_DIRS += device/linaro/hikey/sepolicy
John Stultzd497f632017-05-30 23:51:33 -070049BOARD_SEPOLICY_DIRS += system/bt/vendor_libs/linux/sepolicy
Dmitry Shmidt0f9fb2a2016-01-26 15:57:04 -080050
Michael Schwartz5eb5e962017-04-06 13:37:15 -070051DEVICE_MANIFEST_FILE := device/linaro/hikey/manifest.xml
Yifan Hongc024f4b2017-05-09 15:37:51 -070052DEVICE_MATRIX_FILE := device/linaro/hikey/compatibility_matrix.xml
Michael Schwartz5eb5e962017-04-06 13:37:15 -070053
Ben Fennema52301e42017-10-17 12:24:04 -070054ifneq ($(TARGET_SENSOR_MEZZANINE),)
55DEVICE_MANIFEST_FILE += device/linaro/hikey/sensorhal/manifest.xml
Sahaj Sarup9a61afa2017-11-07 20:58:21 +000056DEVICE_MANIFEST_FILE += device/linaro/hikey/vr/manifest.xml
Ben Fennema52301e42017-10-17 12:24:04 -070057endif
58
Dmitry Shmidt0f9fb2a2016-01-26 15:57:04 -080059ifeq ($(HOST_OS), linux)
60ifeq ($(TARGET_SYSTEMIMAGES_USE_SQUASHFS), true)
61BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := squashfs
62endif
63endif