blob: 4980f6e35364fbe24e482197d1f2c15e2b257017 [file] [log] [blame]
Amit Pundir8e3de692020-02-01 18:25:51 +05301DB845C_KERNEL_DIR := device/linaro/dragonboard-kernel/android-5.4
2LOCAL_KERNEL_DIR := device/xiaomi/beryllium/prebuilt-kernel/android-5.4
Amit Pundired4440b2020-01-27 14:48:09 +05303
Amit Pundir8e3de692020-02-01 18:25:51 +05304DB845C_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
7LOCAL_MODS := $(wildcard $(LOCAL_KERNEL_DIR)/*.ko)
8BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(DB845C_MODS)
Amit Pundir816b0482020-02-01 20:25:18 +05309# Skip copying modules broken on android-5.4
10# Use local module copy instead
11SKIP_MODS := %/msm.ko
12BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(SKIP_MODS),$(DB845C_MODS))
Amit Pundir8e3de692020-02-01 18:25:51 +053013BOARD_VENDOR_RAMDISK_KERNEL_MODULES += $(LOCAL_MODS)
Amit Pundirc738b812019-06-19 16:13:49 +053014
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
22PRODUCT_NAME := aosp_beryllium
23PRODUCT_DEVICE := aosp_beryllium
24PRODUCT_BRAND := AOSP