John Stultz | ec36f2d | 2022-02-02 04:37:53 +0000 | [diff] [blame] | 1 | include $(LOCAL_PATH)/vendor-package-ver.mk |
Anton Hansson | 1399b12 | 2018-02-08 14:57:45 +0000 | [diff] [blame] | 2 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
| 3 | $(call inherit-product, device/linaro/hikey/hikey-common.mk) |
John Stultz | ec36f2d | 2022-02-02 04:37:53 +0000 | [diff] [blame] | 4 | $(call inherit-product-if-exists, vendor/linaro/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/hikey.mk) |
John Stultz | 4bf95e6 | 2018-01-31 15:20:35 -0800 | [diff] [blame] | 5 | |
Sahaj Sarup | 93980e0 | 2018-09-11 13:24:20 +0000 | [diff] [blame] | 6 | PRODUCT_PROPERTY_OVERRIDES += ro.opengles.version=131072 |
| 7 | |
Vishal Bhoj | e72c920 | 2015-10-23 18:10:21 +0100 | [diff] [blame] | 8 | PRODUCT_NAME := hikey |
| 9 | PRODUCT_DEVICE := hikey |
Dmitry Shmidt | 3965ada | 2016-08-05 10:57:25 -0700 | [diff] [blame] | 10 | PRODUCT_BRAND := Android |
John Stultz | 3d2ce4c | 2019-06-24 23:57:29 +0000 | [diff] [blame] | 11 | |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 12 | ifneq ($(HIKEY_USES_GKI),) |
Yongqin Liu | aa064df | 2020-11-24 16:07:20 +0800 | [diff] [blame] | 13 | HIKEY_MOD_DIR := $(LOCAL_KERNEL_HOME) |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 14 | HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko) |
John Stultz | 3d2ce4c | 2019-06-24 23:57:29 +0000 | [diff] [blame] | 15 | ifneq ($(HIKEY_MODS),) |
| 16 | BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS) |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 17 | # XXX dwc2/phy-hi6220-usb have some timing |
| 18 | # issue that prevents gadget mode from working |
| 19 | # unless they are loaded from initrd. Need to fix. |
| 20 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \ |
| 21 | $(HIKEY_MOD_DIR)/dwc2.ko \ |
| 22 | $(HIKEY_MOD_DIR)/phy-hi6220-usb.ko |
| 23 | |
| 24 | # make sure ion cma heap loads early |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame] | 25 | CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/cma_heap*.ko) |
| 26 | ION_CMA_HEAP_KO := $(wildcard $(HIKEY_MOD_DIR)/ion_cma_heap*.ko) |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 27 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \ |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame] | 28 | $(CMA_HEAP_KO) \ |
| 29 | $(ION_CMA_HEAP_KO) |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 30 | |
| 31 | # Not sure why, but powerkey has to be initrd |
| 32 | # or else we'll see stalls or issues at bootup |
| 33 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \ |
| 34 | $(HIKEY_MOD_DIR)/hisi_powerkey.ko |
| 35 | |
Yongqin Liu | e05046e | 2020-11-24 21:00:19 +0800 | [diff] [blame] | 36 | MMC_CORE_KO := $(wildcard $(HIKEY_MOD_DIR)/mmc_core.ko) |
| 37 | MMC_BLOCK_KO := $(wildcard $(HIKEY_MOD_DIR)/mmc_block.ko) |
| 38 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \ |
| 39 | $(MMC_CORE_KO) \ |
| 40 | $(MMC_BLOCK_KO) |
| 41 | |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 42 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \ |
| 43 | $(HIKEY_MOD_DIR)/hi655x-regulator.ko \ |
| 44 | $(HIKEY_MOD_DIR)/clk-hi655x.ko \ |
| 45 | $(HIKEY_MOD_DIR)/hi655x-pmic.ko \ |
John Stultz | cd76b13 | 2019-08-21 20:50:18 +0000 | [diff] [blame] | 46 | $(HIKEY_MOD_DIR)/dw_mmc-k3.ko \ |
| 47 | $(HIKEY_MOD_DIR)/dw_mmc-pltfm.ko \ |
| 48 | $(HIKEY_MOD_DIR)/dw_mmc.ko \ |
| 49 | |
| 50 | endif |
John Stultz | 3d2ce4c | 2019-06-24 23:57:29 +0000 | [diff] [blame] | 51 | endif |
John Stultz | ec36f2d | 2022-02-02 04:37:53 +0000 | [diff] [blame] | 52 | |
| 53 | PRODUCT_SOONG_NAMESPACES += \ |
| 54 | vendor/linaro/hikey960/$(EXPECTED_LINARO_VENDOR_VERSION)/mali/utgard |
| 55 | |