Merge "hikey960: Avoid failures if sdcardfs.ko isn't present" am: ef1cddcc85 am: 45769a06bc
Original change: https://android-review.googlesource.com/c/device/linaro/hikey/+/1427768
Change-Id: Ic036afdb3e2075a1b5816454704b690109ee2b6a
diff --git a/hikey960.mk b/hikey960.mk
index 0107fad..3a979f8 100644
--- a/hikey960.mk
+++ b/hikey960.mk
@@ -47,10 +47,11 @@
ifneq ($(HIKEY_USES_GKI),)
HIKEY_MOD_DIR := device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)
HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
+ SDCARDFS_KO := $(wildcard $(HIKEY_MOD_DIR)/sdcardfs*.ko)
ifneq ($(HIKEY_MODS),)
BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
$(HIKEY_MOD_DIR)/ion_cma_heap.ko \
- $(HIKEY_MOD_DIR)/sdcardfs.ko
+ $(SDCARDFS_KO)
endif
endif