blob: a5ff4aab928221c5e4a7df719e0217ff0f4a1b2e [file] [log] [blame]
John Stultzec36f2d2022-02-02 04:37:53 +00001include $(LOCAL_PATH)/vendor-package-ver.mk
Anton Hansson1399b122018-02-08 14:57:45 +00002$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
3$(call inherit-product, device/linaro/hikey/hikey-common.mk)
John Stultzec36f2d2022-02-02 04:37:53 +00004$(call inherit-product-if-exists, vendor/linaro/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/hikey.mk)
John Stultz4bf95e62018-01-31 15:20:35 -08005
Sahaj Sarup93980e02018-09-11 13:24:20 +00006PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=131072
7
Vishal Bhoje72c9202015-10-23 18:10:21 +01008PRODUCT_NAME := hikey
9PRODUCT_DEVICE := hikey
Dmitry Shmidt3965ada2016-08-05 10:57:25 -070010PRODUCT_BRAND := Android
John Stultz3d2ce4c2019-06-24 23:57:29 +000011
John Stultzcd76b132019-08-21 20:50:18 +000012ifneq ($(HIKEY_USES_GKI),)
Yongqin Liuaa064df2020-11-24 16:07:20 +080013HIKEY_MOD_DIR := $(LOCAL_KERNEL_HOME)
John Stultzcd76b132019-08-21 20:50:18 +000014HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
John Stultz3d2ce4c2019-06-24 23:57:29 +000015ifneq ($(HIKEY_MODS),)
16 BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
John Stultzcd76b132019-08-21 20:50:18 +000017 # XXX dwc2/phy-hi6220-usb have some timing
18 # issue that prevents gadget mode from working
19 # unless they are loaded from initrd. Need to fix.
20 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
21 $(HIKEY_MOD_DIR)/dwc2.ko \
22 $(HIKEY_MOD_DIR)/phy-hi6220-usb.ko
23
24 # make sure ion cma heap loads early
Yongqin Liue05046e2020-11-24 21:00:19 +080025 CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/cma_heap*.ko)
26 ION_CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/ion_cma_heap*.ko)
John Stultzcd76b132019-08-21 20:50:18 +000027 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
Yongqin Liue05046e2020-11-24 21:00:19 +080028 $(CMA_HEAP_KO) \
29 $(ION_CMA_HEAP_KO)
John Stultzcd76b132019-08-21 20:50:18 +000030
31 # Not sure why, but powerkey has to be initrd
32 # or else we'll see stalls or issues at bootup
33 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
34 $(HIKEY_MOD_DIR)/hisi_powerkey.ko
35
Yongqin Liue05046e2020-11-24 21:00:19 +080036 MMC_CORE_KO := $(wildcard $(HIKEY_MOD_DIR)/mmc_core.ko)
37 MMC_BLOCK_KO := $(wildcard $(HIKEY_MOD_DIR)/mmc_block.ko)
38 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
39 $(MMC_CORE_KO) \
40 $(MMC_BLOCK_KO)
41
John Stultzcd76b132019-08-21 20:50:18 +000042 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
43 $(HIKEY_MOD_DIR)/hi655x-regulator.ko \
44 $(HIKEY_MOD_DIR)/clk-hi655x.ko \
45 $(HIKEY_MOD_DIR)/hi655x-pmic.ko \
John Stultzcd76b132019-08-21 20:50:18 +000046 $(HIKEY_MOD_DIR)/dw_mmc-k3.ko \
47 $(HIKEY_MOD_DIR)/dw_mmc-pltfm.ko \
48 $(HIKEY_MOD_DIR)/dw_mmc.ko \
49
50endif
John Stultz3d2ce4c2019-06-24 23:57:29 +000051endif
John Stultzec36f2d2022-02-02 04:37:53 +000052
53PRODUCT_SOONG_NAMESPACES += \
54 vendor/linaro/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/mali/utgard
55