Caleb Connolly | 726fc21 | 2021-08-02 10:03:37 +0100 | [diff] [blame] | 1 | ifndef TARGET_KERNEL_USE |
| 2 | TARGET_KERNEL_USE := mainline |
| 3 | endif |
| 4 | |
Caleb Connolly | ac63902 | 2021-08-06 10:21:00 +0100 | [diff] [blame] | 5 | KERNEL_MODS := $(wildcard device/generic/sdm845/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/*.ko) |
Caleb Connolly | 726fc21 | 2021-08-02 10:03:37 +0100 | [diff] [blame] | 6 | |
| 7 | # Following modules go to vendor partition |
| 8 | # msm.ko is too big (31M) for ramdisk |
Caleb Connolly | fe7f5c5 | 2021-08-10 09:51:43 +0100 | [diff] [blame] | 9 | VENDOR_KERN_MODS := %/qcom_q6v5_adsp.ko %/qcom_q6v5_mss.ko %/qcom_q6v5_pas.ko |
Caleb Connolly | 726fc21 | 2021-08-02 10:03:37 +0100 | [diff] [blame] | 10 | BOARD_VENDOR_KERNEL_MODULES := $(filter $(VENDOR_KERN_MODS),$(KERNEL_MODS)) |
| 11 | |
| 12 | # All other modules go to ramdisk |
| 13 | BOARD_GENERIC_RAMDISK_KERNEL_MODULES := $(filter-out $(VENDOR_KERN_MODS),$(KERNEL_MODS)) |
| 14 | |
| 15 | # Inherit the full_base and device configurations |
| 16 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
Caleb Connolly | ac63902 | 2021-08-06 10:21:00 +0100 | [diff] [blame] | 17 | $(call inherit-product, device/generic/sdm845/enchilada/device.mk) |
| 18 | $(call inherit-product, device/generic/sdm845/device-common.mk) |
Caleb Connolly | 726fc21 | 2021-08-02 10:03:37 +0100 | [diff] [blame] | 19 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) |
| 20 | |
| 21 | # Product overrides |
| 22 | PRODUCT_NAME := enchilada |
| 23 | PRODUCT_DEVICE := enchilada |
| 24 | PRODUCT_BRAND := AOSP |