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