blob: dc70674716333f994e81aa892b62c09bd350c6e4 [file] [log] [blame]
Amit Pundire4ca84a2021-05-26 14:30:57 +05301ifndef TARGET_KERNEL_USE
2TARGET_KERNEL_USE := mainline
3endif
4RB5_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/rb5/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 := rb5
14PRODUCT_DEVICE := rb5
15PRODUCT_BRAND := Android
16
17ifndef RB5_USES_GKI
18 RB5_USES_GKI := true
19endif
20
21ifeq ($(RB5_USES_GKI), true)
22 RB5_MODS := $(wildcard $(RB5_KERNEL_DIR)/*.ko)
23 ifneq ($(RB5_MODS),)
Amit Pundirad3f2602021-10-20 21:41:01 +053024 RB5_SKIP_MODS := %/venus-core.ko %/venus-dec.ko %/venus-enc.ko
25 BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(RB5_SKIP_MODS),$(RB5_MODS))
Amit Pundire4ca84a2021-05-26 14:30:57 +053026 endif
27endif