Amit Pundir | e4ca84a | 2021-05-26 14:30:57 +0530 | [diff] [blame] | 1 | ifndef TARGET_KERNEL_USE |
| 2 | TARGET_KERNEL_USE := mainline |
| 3 | endif |
| 4 | RB5_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 |
| 13 | PRODUCT_NAME := rb5 |
| 14 | PRODUCT_DEVICE := rb5 |
| 15 | PRODUCT_BRAND := Android |
| 16 | |
| 17 | ifndef RB5_USES_GKI |
| 18 | RB5_USES_GKI := true |
| 19 | endif |
| 20 | |
| 21 | ifeq ($(RB5_USES_GKI), true) |
| 22 | RB5_MODS := $(wildcard $(RB5_KERNEL_DIR)/*.ko) |
| 23 | ifneq ($(RB5_MODS),) |
Amit Pundir | ad3f260 | 2021-10-20 21:41:01 +0530 | [diff] [blame] | 24 | 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 Pundir | e4ca84a | 2021-05-26 14:30:57 +0530 | [diff] [blame] | 26 | endif |
| 27 | endif |