blob: 0a1585897475e4ba5a15a76b65e775d4ea87faa9 [file] [log] [blame]
Anton Hansson1399b122018-02-08 14:57:45 +00001$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
2$(call inherit-product, device/linaro/hikey/hikey-common.mk)
John Stultz4bf95e62018-01-31 15:20:35 -08003
Sandeep Patil2cd1da82018-05-21 14:52:58 -07004#setup dm-verity configs
5PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/f723d000.dwmmc0/by-name/system
6PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc/f723d000.dwmmc0/by-name/vendor
7$(call inherit-product, build/target/product/verity.mk)
8PRODUCT_SUPPORTS_BOOT_SIGNER := false
9PRODUCT_SUPPORTS_VERITY_FEC := false
10
Sahaj Sarup93980e02018-09-11 13:24:20 +000011PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=131072
12
Vishal Bhoje72c9202015-10-23 18:10:21 +010013PRODUCT_NAME := hikey
14PRODUCT_DEVICE := hikey
Dmitry Shmidt3965ada2016-08-05 10:57:25 -070015PRODUCT_BRAND := Android
John Stultz3d2ce4c2019-06-24 23:57:29 +000016
John Stultzcd76b132019-08-21 20:50:18 +000017ifneq ($(HIKEY_USES_GKI),)
John Stultz478f0832020-06-05 04:22:09 +000018HIKEY_MOD_DIR := device/linaro/hikey-kernel/hikey/$(TARGET_KERNEL_USE)/
John Stultzcd76b132019-08-21 20:50:18 +000019HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
John Stultz3d2ce4c2019-06-24 23:57:29 +000020ifneq ($(HIKEY_MODS),)
21 BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
John Stultzcd76b132019-08-21 20:50:18 +000022 # XXX dwc2/phy-hi6220-usb have some timing
23 # issue that prevents gadget mode from working
24 # unless they are loaded from initrd. Need to fix.
25 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
26 $(HIKEY_MOD_DIR)/dwc2.ko \
27 $(HIKEY_MOD_DIR)/phy-hi6220-usb.ko
28
29 # make sure ion cma heap loads early
Yongqin Liue05046e2020-11-24 21:00:19 +080030 CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/cma_heap*.ko)
31 ION_CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/ion_cma_heap*.ko)
John Stultzcd76b132019-08-21 20:50:18 +000032 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
Yongqin Liue05046e2020-11-24 21:00:19 +080033 $(CMA_HEAP_KO) \
34 $(ION_CMA_HEAP_KO)
John Stultzcd76b132019-08-21 20:50:18 +000035
36 # Not sure why, but powerkey has to be initrd
37 # or else we'll see stalls or issues at bootup
38 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
39 $(HIKEY_MOD_DIR)/hisi_powerkey.ko
40
Yongqin Liue05046e2020-11-24 21:00:19 +080041 MMC_CORE_KO := $(wildcard $(HIKEY_MOD_DIR)/mmc_core.ko)
42 MMC_BLOCK_KO := $(wildcard $(HIKEY_MOD_DIR)/mmc_block.ko)
43 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
44 $(MMC_CORE_KO) \
45 $(MMC_BLOCK_KO)
46
John Stultzcd76b132019-08-21 20:50:18 +000047 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
48 $(HIKEY_MOD_DIR)/hi655x-regulator.ko \
49 $(HIKEY_MOD_DIR)/clk-hi655x.ko \
50 $(HIKEY_MOD_DIR)/hi655x-pmic.ko \
John Stultzcd76b132019-08-21 20:50:18 +000051 $(HIKEY_MOD_DIR)/dw_mmc-k3.ko \
52 $(HIKEY_MOD_DIR)/dw_mmc-pltfm.ko \
53 $(HIKEY_MOD_DIR)/dw_mmc.ko \
54
55endif
John Stultz3d2ce4c2019-06-24 23:57:29 +000056endif