Amit Pundir | 8e3de69 | 2020-02-01 18:25:51 +0530 | [diff] [blame] | 1 | DB845C_KERNEL_DIR := device/linaro/dragonboard-kernel/android-5.4 |
| 2 | LOCAL_KERNEL_DIR := device/xiaomi/beryllium/prebuilt-kernel/android-5.4 |
Amit Pundir | ed4440b | 2020-01-27 14:48:09 +0530 | [diff] [blame] | 3 | |
Amit Pundir | 8e3de69 | 2020-02-01 18:25:51 +0530 | [diff] [blame] | 4 | DB845C_MODS := $(wildcard $(DB845C_KERNEL_DIR)/*.ko) |
| 5 | # Local modules are built from following tree: |
| 6 | # https://github.com/pundiramit/linux/tree/android-5.4-modules |
| 7 | LOCAL_MODS := $(wildcard $(LOCAL_KERNEL_DIR)/*.ko) |
| 8 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(DB845C_MODS) |
Amit Pundir | 816b048 | 2020-02-01 20:25:18 +0530 | [diff] [blame^] | 9 | # Skip copying modules broken on android-5.4 |
| 10 | # Use local module copy instead |
| 11 | SKIP_MODS := %/msm.ko |
| 12 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(SKIP_MODS),$(DB845C_MODS)) |
Amit Pundir | 8e3de69 | 2020-02-01 18:25:51 +0530 | [diff] [blame] | 13 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += $(LOCAL_MODS) |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 14 | |
| 15 | # 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 |
| 22 | PRODUCT_NAME := aosp_beryllium |
| 23 | PRODUCT_DEVICE := aosp_beryllium |
| 24 | PRODUCT_BRAND := AOSP |