blob: 8186122ba5060b90ed0d9ec6b27a946f05e7f6ba [file] [log] [blame]
Amit Pundir097c2422020-02-19 20:12:40 +05301ifndef TARGET_KERNEL_USE
Amit Pundird68651e2021-07-04 15:49:45 +05302TARGET_KERNEL_USE := mainline
Amit Pundir8d9cf472020-03-18 16:07:00 +05303endif
Amit Pundir097c2422020-02-19 20:12:40 +05304
Caleb Connollyac639022021-08-06 10:21:00 +01005KERNEL_MODS := $(wildcard device/generic/sdm845/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/*.ko)
Amit Pundir097c2422020-02-19 20:12:40 +05306
7# Following modules go to vendor partition
Amit Pundir8d9cf472020-03-18 16:07:00 +05308# msm.ko is too big (31M) for ramdisk
9VENDOR_KERN_MODS := %/msm.ko
10BOARD_VENDOR_KERNEL_MODULES := $(filter $(VENDOR_KERN_MODS),$(KERNEL_MODS))
Amit Pundir097c2422020-02-19 20:12:40 +053011
Amit Pundir8d9cf472020-03-18 16:07:00 +053012# All other modules go to ramdisk
13BOARD_GENERIC_RAMDISK_KERNEL_MODULES := $(filter-out $(VENDOR_KERN_MODS),$(KERNEL_MODS))
Amit Pundir097c2422020-02-19 20:12:40 +053014
Amit Pundirc738b812019-06-19 16:13:49 +053015# 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/beryllium/device.mk)
18$(call inherit-product, device/generic/sdm845/device-common.mk)
Amit Pundirc738b812019-06-19 16:13:49 +053019$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
20
21# Product overrides
Amit Pundir97e67462020-07-26 21:26:00 +053022PRODUCT_NAME := beryllium
23PRODUCT_DEVICE := beryllium
Amit Pundirc738b812019-06-19 16:13:49 +053024PRODUCT_BRAND := AOSP