blob: 7a31e09520b2838b2934e8fcf6f6884289eebfb3 [file] [log] [blame]
Dmitry Shmidt64185fa2017-07-28 15:08:55 -07001ifndef TARGET_KERNEL_USE
John Stultz360ffa12019-05-13 13:54:48 -07002TARGET_KERNEL_USE=4.19
Dmitry Shmidt64185fa2017-07-28 15:08:55 -07003endif
John Stultz70876332017-08-15 15:35:45 -07004TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image.gz-dtb-hikey960-$(TARGET_KERNEL_USE)
Dmitry Shmidt64185fa2017-07-28 15:08:55 -07005TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi3660-hikey960.dtb-$(TARGET_KERNEL_USE)
6
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
Dmitry Shmidt5d080802017-04-11 14:20:03 -070019#
20# Inherit the full_base and device configurations
Anton Hansson1399b122018-02-08 14:57:45 +000021$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
Dmitry Shmidt5d080802017-04-11 14:20:03 -070022$(call inherit-product, device/linaro/hikey/hikey960/device-hikey960.mk)
23$(call inherit-product, device/linaro/hikey/device-common.mk)
24$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
25
Sandeep Patila2106d12018-07-31 13:56:56 -070026#setup dm-verity configs
27PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/system
28PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/vendor
29$(call inherit-product, build/target/product/verity.mk)
30PRODUCT_SUPPORTS_BOOT_SIGNER := false
31PRODUCT_SUPPORTS_VERITY_FEC := false
32
Sahaj Sarup93980e02018-09-11 13:24:20 +000033PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=196608
34
Dmitry Shmidt5d080802017-04-11 14:20:03 -070035#
36# Overrides
37PRODUCT_NAME := hikey960
38PRODUCT_DEVICE := hikey960
39PRODUCT_BRAND := Android
40PRODUCT_MODEL := AOSP on hikey960
John Stultz3d2ce4c2019-06-24 23:57:29 +000041
John Stultz84925462019-07-12 07:04:13 +000042ifneq ($(HIKEY_USES_GKI),)
43 HIKEY_MOD_DIR := device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)
44 HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
45 ifneq ($(HIKEY_MODS),)
46 BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
47 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
48 $(HIKEY_MOD_DIR)/ion_cma_heap.ko \
Yongqin Liud6d325d2020-03-28 15:38:52 +080049 $(HIKEY_MOD_DIR)/sdcardfs.ko \
John Stultz84925462019-07-12 07:04:13 +000050 $(HIKEY_MOD_DIR)/ufs-hisi.ko
51 endif
John Stultz3d2ce4c2019-06-24 23:57:29 +000052endif