blob: 035002e5a2884f4c109e00441a856ae79e4656fc [file] [log] [blame]
Dmitry Shmidt64185fa2017-07-28 15:08:55 -07001ifndef TARGET_KERNEL_USE
John Stultz5d031842020-06-05 06:17:12 +00002TARGET_KERNEL_USE=5.4
Dmitry Shmidt64185fa2017-07-28 15:08:55 -07003endif
John Stultz478f0832020-06-05 04:22:09 +00004TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)/Image.gz-dtb
5TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)/hi3660-hikey960.dtb
Dmitry Shmidt64185fa2017-07-28 15:08:55 -07006
John Stultz75f00f92017-08-01 12:32:05 -07007ifeq ($(TARGET_KERNEL_USE), 4.4)
John Stultz6dc5ce52017-11-01 18:58:15 -07008 HIKEY_USE_DRM_HWCOMPOSER := false
John Stultz75f00f92017-08-01 12:32:05 -07009 HIKEY_USE_LEGACY_TI_BLUETOOTH := true
10else
John Stultz6dc5ce52017-11-01 18:58:15 -070011 ifeq ($(TARGET_KERNEL_USE), 4.9)
12 HIKEY_USE_DRM_HWCOMPOSER := false
13 else
14 HIKEY_USE_DRM_HWCOMPOSER := true
15 endif
John Stultz75f00f92017-08-01 12:32:05 -070016 HIKEY_USE_LEGACY_TI_BLUETOOTH := false
17endif
John Stultzd497f632017-05-30 23:51:33 -070018
John Stultz5d031842020-06-05 06:17:12 +000019ifndef HIKEY_USES_GKI
20 ifeq ($(TARGET_KERNEL_USE), 5.4)
21 HIKEY_USES_GKI := true
22 endif
23endif
24
Dmitry Shmidt5d080802017-04-11 14:20:03 -070025#
26# Inherit the full_base and device configurations
Anton Hansson1399b122018-02-08 14:57:45 +000027$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
Dmitry Shmidt5d080802017-04-11 14:20:03 -070028$(call inherit-product, device/linaro/hikey/hikey960/device-hikey960.mk)
29$(call inherit-product, device/linaro/hikey/device-common.mk)
30$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
31
Sandeep Patila2106d12018-07-31 13:56:56 -070032#setup dm-verity configs
33PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/system
34PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/vendor
35$(call inherit-product, build/target/product/verity.mk)
36PRODUCT_SUPPORTS_BOOT_SIGNER := false
37PRODUCT_SUPPORTS_VERITY_FEC := false
38
Sahaj Sarup93980e02018-09-11 13:24:20 +000039PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=196608
40
Dmitry Shmidt5d080802017-04-11 14:20:03 -070041#
42# Overrides
43PRODUCT_NAME := hikey960
44PRODUCT_DEVICE := hikey960
45PRODUCT_BRAND := Android
46PRODUCT_MODEL := AOSP on hikey960
John Stultz3d2ce4c2019-06-24 23:57:29 +000047
John Stultz84925462019-07-12 07:04:13 +000048ifneq ($(HIKEY_USES_GKI),)
49 HIKEY_MOD_DIR := device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)
50 HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
51 ifneq ($(HIKEY_MODS),)
52 BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
53 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
54 $(HIKEY_MOD_DIR)/ion_cma_heap.ko \
Yongqin Liud6d325d2020-03-28 15:38:52 +080055 $(HIKEY_MOD_DIR)/sdcardfs.ko \
John Stultz84925462019-07-12 07:04:13 +000056 $(HIKEY_MOD_DIR)/ufs-hisi.ko
57 endif
John Stultz3d2ce4c2019-06-24 23:57:29 +000058endif