blob: f869c71eaa3a77b671e3e7375a45b2301bf9f717 [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
Sandeep Patil2cd1da82018-05-21 14:52:58 -07006#setup dm-verity configs
7PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/f723d000.dwmmc0/by-name/system
8PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc/f723d000.dwmmc0/by-name/vendor
9$(call inherit-product, build/target/product/verity.mk)
10PRODUCT_SUPPORTS_BOOT_SIGNER := false
11PRODUCT_SUPPORTS_VERITY_FEC := false
12
Sahaj Sarup93980e02018-09-11 13:24:20 +000013PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=131072
14
Vishal Bhoje72c9202015-10-23 18:10:21 +010015PRODUCT_NAME := hikey
16PRODUCT_DEVICE := hikey
Dmitry Shmidt3965ada2016-08-05 10:57:25 -070017PRODUCT_BRAND := Android
John Stultz3d2ce4c2019-06-24 23:57:29 +000018
John Stultzcd76b132019-08-21 20:50:18 +000019ifneq ($(HIKEY_USES_GKI),)
Yongqin Liuaa064df2020-11-24 16:07:20 +080020HIKEY_MOD_DIR := $(LOCAL_KERNEL_HOME)
John Stultzcd76b132019-08-21 20:50:18 +000021HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
John Stultz3d2ce4c2019-06-24 23:57:29 +000022ifneq ($(HIKEY_MODS),)
23 BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
John Stultzcd76b132019-08-21 20:50:18 +000024 # XXX dwc2/phy-hi6220-usb have some timing
25 # issue that prevents gadget mode from working
26 # unless they are loaded from initrd. Need to fix.
27 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
28 $(HIKEY_MOD_DIR)/dwc2.ko \
29 $(HIKEY_MOD_DIR)/phy-hi6220-usb.ko
30
31 # make sure ion cma heap loads early
Yongqin Liue05046e2020-11-24 21:00:19 +080032 CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/cma_heap*.ko)
33 ION_CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/ion_cma_heap*.ko)
John Stultzcd76b132019-08-21 20:50:18 +000034 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
Yongqin Liue05046e2020-11-24 21:00:19 +080035 $(CMA_HEAP_KO) \
36 $(ION_CMA_HEAP_KO)
John Stultzcd76b132019-08-21 20:50:18 +000037
38 # Not sure why, but powerkey has to be initrd
39 # or else we'll see stalls or issues at bootup
40 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
41 $(HIKEY_MOD_DIR)/hisi_powerkey.ko
42
Yongqin Liue05046e2020-11-24 21:00:19 +080043 MMC_CORE_KO := $(wildcard $(HIKEY_MOD_DIR)/mmc_core.ko)
44 MMC_BLOCK_KO := $(wildcard $(HIKEY_MOD_DIR)/mmc_block.ko)
45 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
46 $(MMC_CORE_KO) \
47 $(MMC_BLOCK_KO)
48
John Stultzcd76b132019-08-21 20:50:18 +000049 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
50 $(HIKEY_MOD_DIR)/hi655x-regulator.ko \
51 $(HIKEY_MOD_DIR)/clk-hi655x.ko \
52 $(HIKEY_MOD_DIR)/hi655x-pmic.ko \
John Stultzcd76b132019-08-21 20:50:18 +000053 $(HIKEY_MOD_DIR)/dw_mmc-k3.ko \
54 $(HIKEY_MOD_DIR)/dw_mmc-pltfm.ko \
55 $(HIKEY_MOD_DIR)/dw_mmc.ko \
56
57endif
John Stultz3d2ce4c2019-06-24 23:57:29 +000058endif
John Stultzec36f2d2022-02-02 04:37:53 +000059
60PRODUCT_SOONG_NAMESPACES += \
61 vendor/linaro/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/mali/utgard
62