blob: dd5dfb0e0100f38d75996428ba4f868aae21ea7c [file] [log] [blame]
John Stultzf36354e2020-01-14 00:10:06 +00001ifndef TARGET_KERNEL_USE
Amit Pundirbf576372022-02-10 16:31:23 +05302TARGET_KERNEL_USE := 5.15
John Stultzf36354e2020-01-14 00:10:06 +00003endif
Yongqin Liu3b147e92020-10-15 18:09:42 +08004DB845C_KERNEL_DIR ?= device/linaro/dragonboard-kernel/android-$(TARGET_KERNEL_USE)
John Stultzf36354e2020-01-14 00:10:06 +00005
Amit Pundir4e375822019-04-18 16:46:10 +05306# 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/db845c/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 := db845c
14PRODUCT_DEVICE := db845c
15PRODUCT_BRAND := Android
John Stultz092e0432019-08-01 18:28:36 +000016
John Stultzf36354e2020-01-14 00:10:06 +000017ifndef DB845C_USES_GKI
18DB845C_USES_GKI := true
19endif
20
21ifeq ($(DB845C_USES_GKI), true)
John Stultzb59e05d2020-06-26 00:39:36 +000022 DB845C_MODS := $(wildcard $(DB845C_KERNEL_DIR)/*.ko)
23 ifneq ($(DB845C_MODS),)
Amit Pundir979264d2021-07-23 15:46:38 +053024 BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(DB845C_MODS)
John Stultzb59e05d2020-06-26 00:39:36 +000025 endif
John Stultz092e0432019-08-01 18:28:36 +000026endif