blob: 06ac84b51f47e81274c4304e8e807f24a27510e9 [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
Yongqin Liuaa064df2020-11-24 16:07:20 +08004LOCAL_KERNEL_HOME ?= device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)
5TARGET_PREBUILT_KERNEL := $(LOCAL_KERNEL_HOME)/Image.gz-dtb
6TARGET_PREBUILT_DTB := $(LOCAL_KERNEL_HOME)/hi3660-hikey960.dtb
Dmitry Shmidt64185fa2017-07-28 15:08:55 -07007
John Stultz5d031842020-06-05 06:17:12 +00008ifndef HIKEY_USES_GKI
9 ifeq ($(TARGET_KERNEL_USE), 5.4)
10 HIKEY_USES_GKI := true
11 endif
12endif
13
John Stultzaf6e3c02022-02-02 04:37:53 +000014
15include $(LOCAL_PATH)/vendor-package-ver.mk
16
Robin Lee81bde6d2020-08-15 22:17:32 +020017# Inherit the common device configuration
Anton Hansson1399b122018-02-08 14:57:45 +000018$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
Dmitry Shmidt5d080802017-04-11 14:20:03 -070019$(call inherit-product, device/linaro/hikey/hikey960/device-hikey960.mk)
20$(call inherit-product, device/linaro/hikey/device-common.mk)
John Stultzaf6e3c02022-02-02 04:37:53 +000021$(call inherit-product, vendor/linaro/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/hikey960.mk)
Dmitry Shmidt5d080802017-04-11 14:20:03 -070022
Sahaj Sarup93980e02018-09-11 13:24:20 +000023PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=196608
24
Dmitry Shmidt5d080802017-04-11 14:20:03 -070025#
26# Overrides
27PRODUCT_NAME := hikey960
28PRODUCT_DEVICE := hikey960
29PRODUCT_BRAND := Android
30PRODUCT_MODEL := AOSP on hikey960
John Stultz3d2ce4c2019-06-24 23:57:29 +000031
John Stultz84925462019-07-12 07:04:13 +000032ifneq ($(HIKEY_USES_GKI),)
Yongqin Liuaa064df2020-11-24 16:07:20 +080033 HIKEY_MOD_DIR := $(LOCAL_KERNEL_HOME)
John Stultz84925462019-07-12 07:04:13 +000034 HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
John Stultz9d126402020-09-15 03:26:56 +000035 SDCARDFS_KO := $(wildcard $(HIKEY_MOD_DIR)/sdcardfs*.ko)
Yongqin Liue05046e2020-11-24 21:00:19 +080036 CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/cma_heap.ko)
John Stultzaca358a2021-02-12 04:17:20 +000037 DEFERRED_FREE_KO := $(wildcard $(HIKEY_MOD_DIR)/deferred-free-helper.ko)
38 PAGE_POOL_KO := $(wildcard $(HIKEY_MOD_DIR)/page_pool.ko)
John Stultz4ab665e2021-01-08 04:35:02 +000039 SYSTEM_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/system_heap.ko)
Yongqin Liue05046e2020-11-24 21:00:19 +080040 ION_CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/ion_cma_heap*.ko)
John Stultz84925462019-07-12 07:04:13 +000041 ifneq ($(HIKEY_MODS),)
42 BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
43 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
Yongqin Liue05046e2020-11-24 21:00:19 +080044 $(CMA_HEAP_KO) \
John Stultz4ab665e2021-01-08 04:35:02 +000045 $(SYSTEM_HEAP_KO) \
John Stultzaca358a2021-02-12 04:17:20 +000046 $(DEFERRED_FREE_KO) \
47 $(PAGE_POOL_KO) \
Yongqin Liue05046e2020-11-24 21:00:19 +080048 $(ION_CMA_HEAP_KO) \
49 $(SDCARDFS_KO)
John Stultz84925462019-07-12 07:04:13 +000050 endif
John Stultz3d2ce4c2019-06-24 23:57:29 +000051endif
John Stultzaf6e3c02022-02-02 04:37:53 +000052
53PRODUCT_SOONG_NAMESPACES += \
54 vendor/linaro/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/mali/bifrost