John Stultz | f36354e | 2020-01-14 00:10:06 +0000 | [diff] [blame] | 1 | ifndef TARGET_KERNEL_USE |
John Stultz | 77bbca0 | 2021-07-02 20:56:07 +0000 | [diff] [blame] | 2 | TARGET_KERNEL_USE := 5.10 |
John Stultz | f36354e | 2020-01-14 00:10:06 +0000 | [diff] [blame] | 3 | endif |
Yongqin Liu | 3b147e9 | 2020-10-15 18:09:42 +0800 | [diff] [blame] | 4 | DB845C_KERNEL_DIR ?= device/linaro/dragonboard-kernel/android-$(TARGET_KERNEL_USE) |
John Stultz | f36354e | 2020-01-14 00:10:06 +0000 | [diff] [blame] | 5 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 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/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 |
| 13 | PRODUCT_NAME := db845c |
| 14 | PRODUCT_DEVICE := db845c |
| 15 | PRODUCT_BRAND := Android |
John Stultz | 092e043 | 2019-08-01 18:28:36 +0000 | [diff] [blame] | 16 | |
John Stultz | f36354e | 2020-01-14 00:10:06 +0000 | [diff] [blame] | 17 | ifndef DB845C_USES_GKI |
| 18 | DB845C_USES_GKI := true |
| 19 | endif |
| 20 | |
| 21 | ifeq ($(DB845C_USES_GKI), true) |
John Stultz | b59e05d | 2020-06-26 00:39:36 +0000 | [diff] [blame] | 22 | DB845C_MODS := $(wildcard $(DB845C_KERNEL_DIR)/*.ko) |
| 23 | ifneq ($(DB845C_MODS),) |
Amit Pundir | 979264d | 2021-07-23 15:46:38 +0530 | [diff] [blame] | 24 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(DB845C_MODS) |
John Stultz | b59e05d | 2020-06-26 00:39:36 +0000 | [diff] [blame] | 25 | endif |
John Stultz | 092e043 | 2019-08-01 18:28:36 +0000 | [diff] [blame] | 26 | endif |