Amit Pundir | 097c242 | 2020-02-19 20:12:40 +0530 | [diff] [blame] | 1 | ifndef TARGET_KERNEL_USE |
Amit Pundir | 8d9cf47 | 2020-03-18 16:07:00 +0530 | [diff] [blame] | 2 | TARGET_KERNEL_USE := 5.4 |
| 3 | endif |
Amit Pundir | 097c242 | 2020-02-19 20:12:40 +0530 | [diff] [blame] | 4 | |
| 5 | KERNEL_MODS := $(wildcard device/xiaomi/beryllium/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/*.ko) |
| 6 | |
| 7 | # Following modules go to vendor partition |
Amit Pundir | 8d9cf47 | 2020-03-18 16:07:00 +0530 | [diff] [blame] | 8 | # msm.ko is too big (31M) for ramdisk |
| 9 | VENDOR_KERN_MODS := %/msm.ko |
| 10 | BOARD_VENDOR_KERNEL_MODULES := $(filter $(VENDOR_KERN_MODS),$(KERNEL_MODS)) |
Amit Pundir | 097c242 | 2020-02-19 20:12:40 +0530 | [diff] [blame] | 11 | |
Amit Pundir | 8d9cf47 | 2020-03-18 16:07:00 +0530 | [diff] [blame] | 12 | # All other modules go to ramdisk |
| 13 | BOARD_GENERIC_RAMDISK_KERNEL_MODULES := $(filter-out $(VENDOR_KERN_MODS),$(KERNEL_MODS)) |
Amit Pundir | 097c242 | 2020-02-19 20:12:40 +0530 | [diff] [blame] | 14 | |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 15 | # Inherit the full_base and device configurations |
| 16 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
Amit Pundir | 97e6746 | 2020-07-26 21:26:00 +0530 | [diff] [blame] | 17 | $(call inherit-product, device/xiaomi/beryllium/beryllium/device.mk) |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 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 |
Amit Pundir | 97e6746 | 2020-07-26 21:26:00 +0530 | [diff] [blame] | 22 | PRODUCT_NAME := beryllium |
| 23 | PRODUCT_DEVICE := beryllium |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 24 | PRODUCT_BRAND := AOSP |