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 | 5d03184 | 2020-06-05 06:17:12 +0000 | [diff] [blame] | 8 | ifndef HIKEY_USES_GKI |
| 9 | ifeq ($(TARGET_KERNEL_USE), 5.4) |
| 10 | HIKEY_USES_GKI := true |
| 11 | endif |
| 12 | endif |
| 13 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 14 | # |
Robin Lee | 81bde6d | 2020-08-15 22:17:32 +0200 | [diff] [blame] | 15 | # Inherit the common device configuration |
Anton Hansson | 1399b12 | 2018-02-08 14:57:45 +0000 | [diff] [blame] | 16 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 17 | $(call inherit-product, device/linaro/hikey/hikey960/device-hikey960.mk) |
| 18 | $(call inherit-product, device/linaro/hikey/device-common.mk) |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 19 | |
Sahaj Sarup | 93980e0 | 2018-09-11 13:24:20 +0000 | [diff] [blame] | 20 | PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=196608 |
| 21 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 22 | # |
| 23 | # Overrides |
| 24 | PRODUCT_NAME := hikey960 |
| 25 | PRODUCT_DEVICE := hikey960 |
| 26 | PRODUCT_BRAND := Android |
| 27 | PRODUCT_MODEL := AOSP on hikey960 |
John Stultz | 3d2ce4c | 2019-06-24 23:57:29 +0000 | [diff] [blame] | 28 | |
John Stultz | 8492546 | 2019-07-12 07:04:13 +0000 | [diff] [blame] | 29 | ifneq ($(HIKEY_USES_GKI),) |
Yongqin Liu | aa064df | 2020-11-24 16:07:20 +0800 | [diff] [blame] | 30 | HIKEY_MOD_DIR := $(LOCAL_KERNEL_HOME) |
John Stultz | 8492546 | 2019-07-12 07:04:13 +0000 | [diff] [blame] | 31 | HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko) |
John Stultz | 9d12640 | 2020-09-15 03:26:56 +0000 | [diff] [blame] | 32 | SDCARDFS_KO := $(wildcard $(HIKEY_MOD_DIR)/sdcardfs*.ko) |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame] | 33 | CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/cma_heap.ko) |
John Stultz | aca358a | 2021-02-12 04:17:20 +0000 | [diff] [blame] | 34 | DEFERRED_FREE_KO := $(wildcard $(HIKEY_MOD_DIR)/deferred-free-helper.ko) |
| 35 | PAGE_POOL_KO := $(wildcard $(HIKEY_MOD_DIR)/page_pool.ko) |
John Stultz | 4ab665e | 2021-01-08 04:35:02 +0000 | [diff] [blame] | 36 | SYSTEM_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/system_heap.ko) |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame] | 37 | ION_CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/ion_cma_heap*.ko) |
John Stultz | 8492546 | 2019-07-12 07:04:13 +0000 | [diff] [blame] | 38 | ifneq ($(HIKEY_MODS),) |
| 39 | BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS) |
| 40 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \ |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame] | 41 | $(CMA_HEAP_KO) \ |
John Stultz | 4ab665e | 2021-01-08 04:35:02 +0000 | [diff] [blame] | 42 | $(SYSTEM_HEAP_KO) \ |
John Stultz | aca358a | 2021-02-12 04:17:20 +0000 | [diff] [blame] | 43 | $(DEFERRED_FREE_KO) \ |
| 44 | $(PAGE_POOL_KO) \ |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame] | 45 | $(ION_CMA_HEAP_KO) \ |
| 46 | $(SDCARDFS_KO) |
John Stultz | 8492546 | 2019-07-12 07:04:13 +0000 | [diff] [blame] | 47 | endif |
John Stultz | 3d2ce4c | 2019-06-24 23:57:29 +0000 | [diff] [blame] | 48 | endif |