blob: b56bc69a96f58557bbb6e7a8b4eb7a256b6738c0 [file] [log] [blame]
Amit Pundir8e3de692020-02-01 18:25:51 +05301DB845C_KERNEL_DIR := device/linaro/dragonboard-kernel/android-5.4
Amit Pundir8e3de692020-02-01 18:25:51 +05302DB845C_MODS := $(wildcard $(DB845C_KERNEL_DIR)/*.ko)
Amit Pundir1addda62020-02-02 13:07:33 +05303
Amit Pundir8e3de692020-02-01 18:25:51 +05304# Local modules are built from following tree:
5# https://github.com/pundiramit/linux/tree/android-5.4-modules
Amit Pundir1addda62020-02-02 13:07:33 +05306LOCAL_KERNEL_DIR := device/xiaomi/beryllium/prebuilt-kernel/android-5.4
Amit Pundir8e3de692020-02-01 18:25:51 +05307LOCAL_MODS := $(wildcard $(LOCAL_KERNEL_DIR)/*.ko)
Amit Pundir1addda62020-02-02 13:07:33 +05308
Amit Pundir816b0482020-02-01 20:25:18 +05309# Skip copying modules broken on android-5.4
10# Use local module copy instead
Amit Pundir1addda62020-02-02 13:07:33 +053011DB845C_SKIP_MODS := %/msm.ko
12
13# BT modules go to vendor partition
14DB845C_ONLY_VENDOR := %/btqca.ko %/hci_uart.ko
15BOARD_VENDOR_KERNEL_MODULES := $(filter $(DB845C_ONLY_VENDOR),$(DB845C_MODS))
16
17BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(DB845C_SKIP_MODS) $(DB845C_ONLY_VENDOR),$(DB845C_MODS))
Amit Pundir8e3de692020-02-01 18:25:51 +053018BOARD_VENDOR_RAMDISK_KERNEL_MODULES += $(LOCAL_MODS)
Amit Pundirc738b812019-06-19 16:13:49 +053019
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
27PRODUCT_NAME := aosp_beryllium
28PRODUCT_DEVICE := aosp_beryllium
29PRODUCT_BRAND := AOSP