John Stultz | f36354e | 2020-01-14 00:10:06 +0000 | [diff] [blame] | 1 | ifndef TARGET_KERNEL_USE |
John Stultz | 080d821 | 2020-01-21 17:18:57 +0000 | [diff] [blame] | 2 | TARGET_KERNEL_USE := 5.4 |
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),) |
| 24 | BOARD_VENDOR_KERNEL_MODULES += $(DB845C_MODS) |
| 25 | DB845C_ONLY_VENDOR := %/msm.ko |
| 26 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(DB845C_ONLY_VENDOR),$(DB845C_MODS)) |
| 27 | endif |
John Stultz | 092e043 | 2019-08-01 18:28:36 +0000 | [diff] [blame] | 28 | endif |