blob: a09057b773f1506dd09e3c4abd3cb1b0a926dc47 [file] [log] [blame]
Caleb Connolly726fc212021-08-02 10:03:37 +01001ifndef TARGET_KERNEL_USE
2TARGET_KERNEL_USE := mainline
3endif
4
Caleb Connollyac639022021-08-06 10:21:00 +01005KERNEL_MODS := $(wildcard device/generic/sdm845/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/*.ko)
Caleb Connolly726fc212021-08-02 10:03:37 +01006
7# Following modules go to vendor partition
8# msm.ko is too big (31M) for ramdisk
Caleb Connollyac639022021-08-06 10:21:00 +01009VENDOR_KERN_MODS :=
Caleb Connolly726fc212021-08-02 10:03:37 +010010BOARD_VENDOR_KERNEL_MODULES := $(filter $(VENDOR_KERN_MODS),$(KERNEL_MODS))
11
12# All other modules go to ramdisk
13BOARD_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 Connollyac639022021-08-06 10:21:00 +010017$(call inherit-product, device/generic/sdm845/enchilada/device.mk)
18$(call inherit-product, device/generic/sdm845/device-common.mk)
Caleb Connolly726fc212021-08-02 10:03:37 +010019$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
20
21# Product overrides
22PRODUCT_NAME := enchilada
23PRODUCT_DEVICE := enchilada
24PRODUCT_BRAND := AOSP