Anton Hansson | 1399b12 | 2018-02-08 14:57:45 +0000 | [diff] [blame] | 1 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
| 2 | $(call inherit-product, device/linaro/hikey/hikey-common.mk) |
John Stultz | 4bf95e6 | 2018-01-31 15:20:35 -0800 | [diff] [blame] | 3 | |
Sandeep Patil | 2cd1da8 | 2018-05-21 14:52:58 -0700 | [diff] [blame] | 4 | #setup dm-verity configs |
| 5 | PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/f723d000.dwmmc0/by-name/system |
| 6 | PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc/f723d000.dwmmc0/by-name/vendor |
| 7 | $(call inherit-product, build/target/product/verity.mk) |
| 8 | PRODUCT_SUPPORTS_BOOT_SIGNER := false |
| 9 | PRODUCT_SUPPORTS_VERITY_FEC := false |
| 10 | |
Sahaj Sarup | 93980e0 | 2018-09-11 13:24:20 +0000 | [diff] [blame] | 11 | PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=131072 |
| 12 | |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 13 | PRODUCT_NAME := hikey |
| 14 | PRODUCT_DEVICE := hikey |
Dmitry Shmidt | 3965ada | 2016-08-05 10:57:25 -0700 | [diff] [blame] | 15 | PRODUCT_BRAND := Android |
John Stultz | 3d2ce4c | 2019-06-24 23:57:29 +0000 | [diff] [blame] | 16 | |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 17 | ifneq ($(HIKEY_USES_GKI),) |
| 18 | HIKEY_MOD_DIR := device/linaro/hikey-kernel/hikey/5.4/ |
| 19 | HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko) |
John Stultz | 3d2ce4c | 2019-06-24 23:57:29 +0000 | [diff] [blame] | 20 | ifneq ($(HIKEY_MODS),) |
| 21 | BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS) |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 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 | 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 | |
| 48 | endif |
John Stultz | 3d2ce4c | 2019-06-24 23:57:29 +0000 | [diff] [blame] | 49 | endif |