1ifndef TARGET_KERNEL_USE 2TARGET_KERNEL_USE := 5.4 3endif 4DB845C_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/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 16 17ifndef DB845C_USES_GKI 18DB845C_USES_GKI := true 19endif 20 21ifeq ($(DB845C_USES_GKI), true) 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 28endif 29