blob: 7f0c72e4d31b076419663757a953c15a35418ff5 [file] [log] [blame]
Amit Pundirfb9cf9b2022-03-27 21:52:15 +05301ifndef TARGET_KERNEL_USE
2TARGET_KERNEL_USE := mainline
3endif
4
5KERNEL_MODS := $(wildcard device/generic/sdm845/shared/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/*.ko)
6
7# Following modules go to vendor partition
8# msm.ko is too big (31M) for ramdisk
9VENDOR_KERN_MODS := %/msm.ko
10BOARD_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)
17$(call inherit-product, device/generic/sdm845/beryllium/device.mk)
18$(call inherit-product, device/generic/sdm845/shared/device.mk)
19$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
20
21# Product overrides
22PRODUCT_NAME := beryllium
23PRODUCT_DEVICE := beryllium
24PRODUCT_BRAND := AOSP