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),) |
John Stultz | 478f083 | 2020-06-05 04:22:09 +0000 | [diff] [blame] | 18 | HIKEY_MOD_DIR := device/linaro/hikey-kernel/hikey/$(TARGET_KERNEL_USE)/ |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 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 |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame^] | 30 | CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/cma_heap*.ko) |
| 31 | ION_CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/ion_cma_heap*.ko) |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 32 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \ |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame^] | 33 | $(CMA_HEAP_KO) \ |
| 34 | $(ION_CMA_HEAP_KO) |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 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 | |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame^] | 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 | |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 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 \ |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 51 | $(HIKEY_MOD_DIR)/dw_mmc-k3.ko \ |
| 52 | $(HIKEY_MOD_DIR)/dw_mmc-pltfm.ko \ |
| 53 | $(HIKEY_MOD_DIR)/dw_mmc.ko \ |
| 54 | |
| 55 | endif |
John Stultz | 3d2ce4c | 2019-06-24 23:57:29 +0000 | [diff] [blame] | 56 | endif |