1# Primary Arch
2TARGET_ARCH := arm64
3TARGET_ARCH_VARIANT := armv8-a
4TARGET_CPU_ABI := arm64-v8a
5
6# Secondary Arch
7TARGET_2ND_ARCH := arm
8TARGET_2ND_ARCH_VARIANT := armv8-a
9TARGET_2ND_CPU_ABI := armeabi-v7a
10TARGET_2ND_CPU_ABI2 := armeabi
11
12
13USE_OPENGL_RENDERER := true
14
15# BT configs
16BOARD_HAVE_BLUETOOTH := true
17
18# enable Treble
19PRODUCT_FULL_TREBLE_OVERRIDE := true
20BOARD_VNDK_VERSION := current
21
22TARGET_ENABLE_MEDIADRM_64 := true
23
24# generic wifi
25WPA_SUPPLICANT_VERSION := VER_0_8_X
26BOARD_WPA_SUPPLICANT_DRIVER := NL80211
27BOARD_HOSTAPD_DRIVER := NL80211
28
29TARGET_NO_BOOTLOADER := true
30TARGET_NO_KERNEL := false
31TARGET_NO_RECOVERY ?= true
32TARGET_HARDWARE_3D := true
33BOARD_USES_GENERIC_AUDIO := true
34USE_CAMERA_STUB := true
35TARGET_USERIMAGES_USE_EXT4 := true
36TARGET_USE_PAN_DISPLAY := true
37
38TARGET_USES_HWC2 := true
39
40BOARD_SEPOLICY_DIRS += device/linaro/hikey/sepolicy
41BOARD_SEPOLICY_DIRS += system/bt/vendor_libs/linux/sepolicy
42
43DEVICE_MANIFEST_FILE := device/linaro/hikey/manifest.xml
44DEVICE_MATRIX_FILE := device/linaro/hikey/compatibility_matrix.xml
45
46ifneq ($(TARGET_SENSOR_MEZZANINE),)
47DEVICE_MANIFEST_FILE += device/linaro/hikey/sensorhal/manifest.xml
48DEVICE_MANIFEST_FILE += device/linaro/hikey/vr/manifest.xml
49endif
50
51ifeq ($(HOST_OS), linux)
52ifeq ($(TARGET_SYSTEMIMAGES_USE_SQUASHFS), true)
53BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := squashfs
54endif
55endif
56
57TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888
58TARGET_RECOVERY_UI_LIB := librecovery_ui_hikey
59