blob: 31631afb4a0d519bb32aa3370b6eeaa01c154712 [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
Amit Pundir0088f6d2023-10-15 21:05:34 +05306PRODUCT_PROPERTY_OVERRIDES += \
7 ro.opengles.version=131072 \
8 ro.hardware.egl=mali
Sahaj Sarup93980e02018-09-11 13:24:20 +00009
Vishal Bhoje72c9202015-10-23 18:10:21 +010010PRODUCT_NAME := hikey
11PRODUCT_DEVICE := hikey
Dmitry Shmidt3965ada2016-08-05 10:57:25 -070012PRODUCT_BRAND := Android
John Stultz3d2ce4c2019-06-24 23:57:29 +000013
John Stultzcd76b132019-08-21 20:50:18 +000014ifneq ($(HIKEY_USES_GKI),)
Yongqin Liuaa064df2020-11-24 16:07:20 +080015HIKEY_MOD_DIR := $(LOCAL_KERNEL_HOME)
John Stultzcd76b132019-08-21 20:50:18 +000016HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
John Stultz3d2ce4c2019-06-24 23:57:29 +000017ifneq ($(HIKEY_MODS),)
18 BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
John Stultzcd76b132019-08-21 20:50:18 +000019 # XXX dwc2/phy-hi6220-usb have some timing
20 # issue that prevents gadget mode from working
21 # unless they are loaded from initrd. Need to fix.
22 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
23 $(HIKEY_MOD_DIR)/dwc2.ko \
24 $(HIKEY_MOD_DIR)/phy-hi6220-usb.ko
25
26 # make sure ion cma heap loads early
Yongqin Liue05046e2020-11-24 21:00:19 +080027 CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/cma_heap*.ko)
28 ION_CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/ion_cma_heap*.ko)
John Stultzcd76b132019-08-21 20:50:18 +000029 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
Yongqin Liue05046e2020-11-24 21:00:19 +080030 $(CMA_HEAP_KO) \
31 $(ION_CMA_HEAP_KO)
John Stultzcd76b132019-08-21 20:50:18 +000032
33 # Not sure why, but powerkey has to be initrd
34 # or else we'll see stalls or issues at bootup
35 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
36 $(HIKEY_MOD_DIR)/hisi_powerkey.ko
37
Yongqin Liue05046e2020-11-24 21:00:19 +080038 MMC_CORE_KO := $(wildcard $(HIKEY_MOD_DIR)/mmc_core.ko)
39 MMC_BLOCK_KO := $(wildcard $(HIKEY_MOD_DIR)/mmc_block.ko)
40 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
41 $(MMC_CORE_KO) \
42 $(MMC_BLOCK_KO)
43
John Stultzcd76b132019-08-21 20:50:18 +000044 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
45 $(HIKEY_MOD_DIR)/hi655x-regulator.ko \
46 $(HIKEY_MOD_DIR)/clk-hi655x.ko \
47 $(HIKEY_MOD_DIR)/hi655x-pmic.ko \
John Stultzcd76b132019-08-21 20:50:18 +000048 $(HIKEY_MOD_DIR)/dw_mmc-k3.ko \
49 $(HIKEY_MOD_DIR)/dw_mmc-pltfm.ko \
50 $(HIKEY_MOD_DIR)/dw_mmc.ko \
51
52endif
John Stultz3d2ce4c2019-06-24 23:57:29 +000053endif
John Stultzec36f2d2022-02-02 04:37:53 +000054
55PRODUCT_SOONG_NAMESPACES += \
56 vendor/linaro/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/mali/utgard
57