blob: dc70674716333f994e81aa892b62c09bd350c6e4 [file] [log] [blame]
ifndef TARGET_KERNEL_USE
TARGET_KERNEL_USE := mainline
endif
RB5_KERNEL_DIR := device/linaro/dragonboard-kernel/android-$(TARGET_KERNEL_USE)
# Inherit the full_base and device configurations
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, device/linaro/dragonboard/rb5/device.mk)
$(call inherit-product, device/linaro/dragonboard/device-common.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
# Product overrides
PRODUCT_NAME := rb5
PRODUCT_DEVICE := rb5
PRODUCT_BRAND := Android
ifndef RB5_USES_GKI
RB5_USES_GKI := true
endif
ifeq ($(RB5_USES_GKI), true)
RB5_MODS := $(wildcard $(RB5_KERNEL_DIR)/*.ko)
ifneq ($(RB5_MODS),)
RB5_SKIP_MODS := %/venus-core.ko %/venus-dec.ko %/venus-enc.ko
BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(RB5_SKIP_MODS),$(RB5_MODS))
endif
endif