blob: 06e648e362af3b386bb449fa0d0858ec668a4d6f [file] [log] [blame]
Amit Pundire4ca84a2021-05-26 14:30:57 +05301ifndef TARGET_KERNEL_USE
2TARGET_KERNEL_USE := mainline
3endif
4RB5_KERNEL_DIR := device/linaro/dragonboard-kernel/android-$(TARGET_KERNEL_USE)
5
6# Inherit the full_base and device configurations
7$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
8$(call inherit-product, device/linaro/dragonboard/rb5/device.mk)
9$(call inherit-product, device/linaro/dragonboard/device-common.mk)
10$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
11
12# Product overrides
13PRODUCT_NAME := rb5
14PRODUCT_DEVICE := rb5
15PRODUCT_BRAND := Android
16
17ifndef RB5_USES_GKI
18 RB5_USES_GKI := true
19endif
20
21ifeq ($(RB5_USES_GKI), true)
22 RB5_MODS := $(wildcard $(RB5_KERNEL_DIR)/*.ko)
23 ifneq ($(RB5_MODS),)
24 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += $(RB5_MODS)
25 endif
26endif