Amit Pundir | 8e3de69 | 2020-02-01 18:25:51 +0530 | [diff] [blame] | 1 | DB845C_KERNEL_DIR := device/linaro/dragonboard-kernel/android-5.4 |
Amit Pundir | 8e3de69 | 2020-02-01 18:25:51 +0530 | [diff] [blame] | 2 | DB845C_MODS := $(wildcard $(DB845C_KERNEL_DIR)/*.ko) |
Amit Pundir | 1addda6 | 2020-02-02 13:07:33 +0530 | [diff] [blame] | 3 | |
Amit Pundir | 8e3de69 | 2020-02-01 18:25:51 +0530 | [diff] [blame] | 4 | # Local modules are built from following tree: |
| 5 | # https://github.com/pundiramit/linux/tree/android-5.4-modules |
Amit Pundir | 1addda6 | 2020-02-02 13:07:33 +0530 | [diff] [blame] | 6 | LOCAL_KERNEL_DIR := device/xiaomi/beryllium/prebuilt-kernel/android-5.4 |
Amit Pundir | 8e3de69 | 2020-02-01 18:25:51 +0530 | [diff] [blame] | 7 | LOCAL_MODS := $(wildcard $(LOCAL_KERNEL_DIR)/*.ko) |
Amit Pundir | 1addda6 | 2020-02-02 13:07:33 +0530 | [diff] [blame] | 8 | |
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 |
Amit Pundir | 1addda6 | 2020-02-02 13:07:33 +0530 | [diff] [blame] | 11 | DB845C_SKIP_MODS := %/msm.ko |
| 12 | |
| 13 | # BT modules go to vendor partition |
| 14 | DB845C_ONLY_VENDOR := %/btqca.ko %/hci_uart.ko |
| 15 | BOARD_VENDOR_KERNEL_MODULES := $(filter $(DB845C_ONLY_VENDOR),$(DB845C_MODS)) |
| 16 | |
| 17 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(DB845C_SKIP_MODS) $(DB845C_ONLY_VENDOR),$(DB845C_MODS)) |
Amit Pundir | 8e3de69 | 2020-02-01 18:25:51 +0530 | [diff] [blame] | 18 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += $(LOCAL_MODS) |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 19 | |
| 20 | # Inherit the full_base and device configurations |
| 21 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
| 22 | $(call inherit-product, device/xiaomi/beryllium/aosp_beryllium/device.mk) |
| 23 | $(call inherit-product, device/xiaomi/beryllium/device-common.mk) |
| 24 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) |
| 25 | |
| 26 | # Product overrides |
| 27 | PRODUCT_NAME := aosp_beryllium |
| 28 | PRODUCT_DEVICE := aosp_beryllium |
| 29 | PRODUCT_BRAND := AOSP |