blob: a7b4330698a94db9858deb0bd65d3c0255ecf4a2 [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)
17$(call inherit-product, device/xiaomi/beryllium/aosp_beryllium/device.mk)
18$(call inherit-product, device/xiaomi/beryllium/device-common.mk)
19$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
20
21# Product overrides
22PRODUCT_NAME := aosp_beryllium
23PRODUCT_DEVICE := aosp_beryllium
24PRODUCT_BRAND := AOSP