blob: 3659579ec529078ac9cc29a1eb7cafe8ff05e9ef [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),)
Yongqin Liuaa064df2020-11-24 16:07:20 +080018HIKEY_MOD_DIR := $(LOCAL_KERNEL_HOME)
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
30 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
31 $(HIKEY_MOD_DIR)/ion_cma_heap.ko
32
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
38 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
39 $(HIKEY_MOD_DIR)/hi655x-regulator.ko \
40 $(HIKEY_MOD_DIR)/clk-hi655x.ko \
41 $(HIKEY_MOD_DIR)/hi655x-pmic.ko \
42 $(HIKEY_MOD_DIR)/mmc_core.ko \
43 $(HIKEY_MOD_DIR)/mmc_block.ko \
44 $(HIKEY_MOD_DIR)/dw_mmc-k3.ko \
45 $(HIKEY_MOD_DIR)/dw_mmc-pltfm.ko \
46 $(HIKEY_MOD_DIR)/dw_mmc.ko \
47
48endif
John Stultz3d2ce4c2019-06-24 23:57:29 +000049endif