blob: 8fd654d076f3aa6b03f0f5f429a2482bdbe63573 [file] [log] [blame]
Amit Pundir097c2422020-02-19 20:12:40 +05301ifndef TARGET_KERNEL_USE
Amit Pundir8d9cf472020-03-18 16:07:00 +05302TARGET_KERNEL_USE := 5.4
3endif
Amit Pundir097c2422020-02-19 20:12:40 +05304
5KERNEL_MODS := $(wildcard device/xiaomi/beryllium/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/*.ko)
6
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)
Amit Pundir97e67462020-07-26 21:26:00 +053017$(call inherit-product, device/xiaomi/beryllium/beryllium/device.mk)
Amit Pundirc738b812019-06-19 16:13:49 +053018$(call inherit-product, device/xiaomi/beryllium/device-common.mk)
19$(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