Dmitry Shmidt | 64185fa | 2017-07-28 15:08:55 -0700 | [diff] [blame] | 1 | ifndef TARGET_KERNEL_USE |
John Stultz | 5d03184 | 2020-06-05 06:17:12 +0000 | [diff] [blame] | 2 | TARGET_KERNEL_USE=5.4 |
Dmitry Shmidt | 64185fa | 2017-07-28 15:08:55 -0700 | [diff] [blame] | 3 | endif |
Yongqin Liu | aa064df | 2020-11-24 16:07:20 +0800 | [diff] [blame] | 4 | LOCAL_KERNEL_HOME ?= device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE) |
| 5 | TARGET_PREBUILT_KERNEL := $(LOCAL_KERNEL_HOME)/Image.gz-dtb |
| 6 | TARGET_PREBUILT_DTB := $(LOCAL_KERNEL_HOME)/hi3660-hikey960.dtb |
Dmitry Shmidt | 64185fa | 2017-07-28 15:08:55 -0700 | [diff] [blame] | 7 | |
John Stultz | 75f00f9 | 2017-08-01 12:32:05 -0700 | [diff] [blame] | 8 | ifeq ($(TARGET_KERNEL_USE), 4.4) |
John Stultz | 6dc5ce5 | 2017-11-01 18:58:15 -0700 | [diff] [blame] | 9 | HIKEY_USE_DRM_HWCOMPOSER := false |
John Stultz | 75f00f9 | 2017-08-01 12:32:05 -0700 | [diff] [blame] | 10 | HIKEY_USE_LEGACY_TI_BLUETOOTH := true |
| 11 | else |
John Stultz | 6dc5ce5 | 2017-11-01 18:58:15 -0700 | [diff] [blame] | 12 | ifeq ($(TARGET_KERNEL_USE), 4.9) |
| 13 | HIKEY_USE_DRM_HWCOMPOSER := false |
| 14 | else |
| 15 | HIKEY_USE_DRM_HWCOMPOSER := true |
| 16 | endif |
John Stultz | 75f00f9 | 2017-08-01 12:32:05 -0700 | [diff] [blame] | 17 | HIKEY_USE_LEGACY_TI_BLUETOOTH := false |
| 18 | endif |
John Stultz | d497f63 | 2017-05-30 23:51:33 -0700 | [diff] [blame] | 19 | |
John Stultz | 5d03184 | 2020-06-05 06:17:12 +0000 | [diff] [blame] | 20 | ifndef HIKEY_USES_GKI |
| 21 | ifeq ($(TARGET_KERNEL_USE), 5.4) |
| 22 | HIKEY_USES_GKI := true |
| 23 | endif |
| 24 | endif |
| 25 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 26 | # |
Robin Lee | 81bde6d | 2020-08-15 22:17:32 +0200 | [diff] [blame] | 27 | # Inherit the common device configuration |
Anton Hansson | 1399b12 | 2018-02-08 14:57:45 +0000 | [diff] [blame] | 28 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 29 | $(call inherit-product, device/linaro/hikey/hikey960/device-hikey960.mk) |
| 30 | $(call inherit-product, device/linaro/hikey/device-common.mk) |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 31 | |
Sandeep Patil | a2106d1 | 2018-07-31 13:56:56 -0700 | [diff] [blame] | 32 | #setup dm-verity configs |
| 33 | PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/system |
| 34 | PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc/ff3b0000.ufs/by-name/vendor |
| 35 | $(call inherit-product, build/target/product/verity.mk) |
| 36 | PRODUCT_SUPPORTS_BOOT_SIGNER := false |
| 37 | PRODUCT_SUPPORTS_VERITY_FEC := false |
| 38 | |
Sahaj Sarup | 93980e0 | 2018-09-11 13:24:20 +0000 | [diff] [blame] | 39 | PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=196608 |
| 40 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 41 | # |
| 42 | # Overrides |
| 43 | PRODUCT_NAME := hikey960 |
| 44 | PRODUCT_DEVICE := hikey960 |
| 45 | PRODUCT_BRAND := Android |
| 46 | PRODUCT_MODEL := AOSP on hikey960 |
John Stultz | 3d2ce4c | 2019-06-24 23:57:29 +0000 | [diff] [blame] | 47 | |
John Stultz | 8492546 | 2019-07-12 07:04:13 +0000 | [diff] [blame] | 48 | ifneq ($(HIKEY_USES_GKI),) |
Yongqin Liu | aa064df | 2020-11-24 16:07:20 +0800 | [diff] [blame] | 49 | HIKEY_MOD_DIR := $(LOCAL_KERNEL_HOME) |
John Stultz | 8492546 | 2019-07-12 07:04:13 +0000 | [diff] [blame] | 50 | HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko) |
John Stultz | 9d12640 | 2020-09-15 03:26:56 +0000 | [diff] [blame] | 51 | SDCARDFS_KO := $(wildcard $(HIKEY_MOD_DIR)/sdcardfs*.ko) |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame] | 52 | CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/cma_heap.ko) |
John Stultz | 4ab665e | 2021-01-08 04:35:02 +0000 | [diff] [blame] | 53 | SYSTEM_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/system_heap.ko) |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame] | 54 | ION_CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/ion_cma_heap*.ko) |
John Stultz | 8492546 | 2019-07-12 07:04:13 +0000 | [diff] [blame] | 55 | ifneq ($(HIKEY_MODS),) |
| 56 | BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS) |
| 57 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \ |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame] | 58 | $(CMA_HEAP_KO) \ |
John Stultz | 4ab665e | 2021-01-08 04:35:02 +0000 | [diff] [blame] | 59 | $(SYSTEM_HEAP_KO) \ |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame] | 60 | $(ION_CMA_HEAP_KO) \ |
| 61 | $(SDCARDFS_KO) |
John Stultz | 8492546 | 2019-07-12 07:04:13 +0000 | [diff] [blame] | 62 | endif |
John Stultz | 3d2ce4c | 2019-06-24 23:57:29 +0000 | [diff] [blame] | 63 | endif |