blob: 3a979f8848b3faf6460a8afca13566de1403b89d [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#
Robin Lee81bde6d2020-08-15 22:17:32 +020026# Inherit the common device configuration
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)
Dmitry Shmidt5d080802017-04-11 14:20:03 -070030
Sandeep Patila2106d12018-07-31 13:56:56 -070031#setup dm-verity configs
32PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/system
33PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/vendor
34$(call inherit-product, build/target/product/verity.mk)
35PRODUCT_SUPPORTS_BOOT_SIGNER := false
36PRODUCT_SUPPORTS_VERITY_FEC := false
37
Sahaj Sarup93980e02018-09-11 13:24:20 +000038PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=196608
39
Dmitry Shmidt5d080802017-04-11 14:20:03 -070040#
41# Overrides
42PRODUCT_NAME := hikey960
43PRODUCT_DEVICE := hikey960
44PRODUCT_BRAND := Android
45PRODUCT_MODEL := AOSP on hikey960
John Stultz3d2ce4c2019-06-24 23:57:29 +000046
John Stultz84925462019-07-12 07:04:13 +000047ifneq ($(HIKEY_USES_GKI),)
48 HIKEY_MOD_DIR := device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)
49 HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
John Stultz9d126402020-09-15 03:26:56 +000050 SDCARDFS_KO := $(wildcard $(HIKEY_MOD_DIR)/sdcardfs*.ko)
John Stultz84925462019-07-12 07:04:13 +000051 ifneq ($(HIKEY_MODS),)
52 BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
53 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
54 $(HIKEY_MOD_DIR)/ion_cma_heap.ko \
John Stultz9d126402020-09-15 03:26:56 +000055 $(SDCARDFS_KO)
John Stultz84925462019-07-12 07:04:13 +000056 endif
John Stultz3d2ce4c2019-06-24 23:57:29 +000057endif