• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
30BOARD_HOSTAPD_DRIVER := NL80211
31CONFIG_DRIVER_NL80211 := y
32
33ifeq ($(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
36BOARD_KERNEL_CMDLINE := console=ttyFIQ0 androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime
37endif
38
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
46BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736
47ifeq ($(TARGET_USERDATAIMAGE_4GB), true)
48BOARD_USERDATAIMAGE_PARTITION_SIZE := 1595915776
49else
50BOARD_USERDATAIMAGE_PARTITION_SIZE := 5588893184
51endif
52BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
53BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
54BOARD_FLASH_BLOCK_SIZE := 131072
55TARGET_USE_PAN_DISPLAY := true
56
57# enable to use the CPUSETS feature
58ENABLE_CPUSETS := true
59
60BOARD_SEPOLICY_DIRS := device/linaro/hikey/sepolicy
61
62ifeq ($(HOST_OS), linux)
63ifeq ($(TARGET_SYSTEMIMAGES_USE_SQUASHFS), true)
64BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := squashfs
65endif
66endif
67