taimen: include correct kernel modules

Based on whether the lunch target is set to taimen, taimen_clang, or
taimen_gcc.

Bug: 32455818
Change-Id: I0299aa01649ca3fa5ebf050364da7f15a7b240da
This commit is contained in:
Nick Desaulniers
2017-05-18 14:44:33 -07:00
parent 1dd23ec0b9
commit ff5370caae

View File

@@ -24,16 +24,23 @@ include device/google/wahoo/BoardConfig.mk
BOARD_BOOTIMAGE_PARTITION_SIZE := 41943040
BOARD_AVB_ENABLE := true
ifeq (,$(filter taimen_clang, $(TARGET_PRODUCT)))
BOARD_VENDOR_KERNEL_MODULES += \
device/google/wahoo-kernel/touch_core_base.ko \
device/google/wahoo-kernel/ftm4.ko \
device/google/wahoo-kernel/sw49408.ko
else
ifeq (,$(filter-out taimen_clang, $(TARGET_PRODUCT)))
# if TARGET_PRODUCT == taimen_clang
BOARD_VENDOR_KERNEL_MODULES += \
device/google/wahoo-kernel/clang/touch_core_base.ko \
device/google/wahoo-kernel/clang/ftm4.ko \
device/google/wahoo-kernel/clang/sw49408.ko
else ifeq (,$(filter-out taimen_gcc, $(TARGET_PRODUCT)))
BOARD_VENDOR_KERNEL_MODULES += \
# if TARGET_PRODUCT == taimen_gcc
device/google/wahoo-kernel/gcc/touch_core_base.ko \
device/google/wahoo-kernel/gcc/ftm4.ko \
device/google/wahoo-kernel/gcc/sw49408.ko
else
BOARD_VENDOR_KERNEL_MODULES += \
device/google/wahoo-kernel/touch_core_base.ko \
device/google/wahoo-kernel/ftm4.ko \
device/google/wahoo-kernel/sw49408.ko
endif
-include vendor/google_devices/taimen/proprietary/BoardConfigVendor.mk