1$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
2$(call inherit-product, device/linaro/hikey/hikey-common.mk)
3
4#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
11PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=131072
12
13PRODUCT_NAME := hikey
14PRODUCT_DEVICE := hikey
15PRODUCT_BRAND := Android
16
17ifneq ($(HIKEY_USES_GKI),)
18HIKEY_MOD_DIR := $(LOCAL_KERNEL_HOME)
19HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
20ifneq ($(HIKEY_MODS),)
21  BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
22  # 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  CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/cma_heap*.ko)
31  ION_CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/ion_cma_heap*.ko)
32  BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
33      $(CMA_HEAP_KO) \
34      $(ION_CMA_HEAP_KO)
35
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
41  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
47  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 \
51	$(HIKEY_MOD_DIR)/dw_mmc-k3.ko \
52	$(HIKEY_MOD_DIR)/dw_mmc-pltfm.ko \
53	$(HIKEY_MOD_DIR)/dw_mmc.ko \
54
55endif
56endif
57