Amit Pundir | 097c242 | 2020-02-19 20:12:40 +0530 | [diff] [blame] | 1 | ifndef TARGET_KERNEL_USE |
Amit Pundir | d68651e | 2021-07-04 15:49:45 +0530 | [diff] [blame] | 2 | TARGET_KERNEL_USE := mainline |
Amit Pundir | 8d9cf47 | 2020-03-18 16:07:00 +0530 | [diff] [blame] | 3 | endif |
Amit Pundir | 097c242 | 2020-02-19 20:12:40 +0530 | [diff] [blame] | 4 | |
Caleb Connolly | ac63902 | 2021-08-06 10:21:00 +0100 | [diff] [blame] | 5 | KERNEL_MODS := $(wildcard device/generic/sdm845/prebuilt-kernel/android-$(TARGET_KERNEL_USE)/*.ko) |
Amit Pundir | 097c242 | 2020-02-19 20:12:40 +0530 | [diff] [blame] | 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) |
Caleb Connolly | ac63902 | 2021-08-06 10:21:00 +0100 | [diff] [blame] | 17 | $(call inherit-product, device/generic/sdm845/beryllium/device.mk) |
| 18 | $(call inherit-product, device/generic/sdm845/device-common.mk) |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 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 |