common: ignore vendor modules if we're not building modules

Most build modules into kernel, this fixes errors like:
vendor/qcom/build/tasks/generate_extra_images.mk:244: error: writing to readonly directory: "/audio_apr.ko"

Change-Id: Ie45613c91f90f1e30340a5b173513c462e14d8b9
This commit is contained in:
Jake Weinstein 2020-11-02 05:02:03 +01:00
parent b6862eb93f
commit 8240544de0
1 changed files with 2 additions and 0 deletions

View File

@ -240,12 +240,14 @@ kernelclean:
@echo "kernel cleanup done"
# Set correct dependency for kernel modules
ifneq ($(KERNEL_MODULES_INSTALL),)
ifneq ($(BOARD_VENDOR_KERNEL_MODULES),)
$(BOARD_VENDOR_KERNEL_MODULES): $(INSTALLED_BOOTIMAGE_TARGET)
endif
ifneq ($(BOARD_RECOVERY_KERNEL_MODULES),)
$(BOARD_RECOVERY_KERNEL_MODULES): $(INSTALLED_BOOTIMAGE_TARGET)
endif
endif
define board-vendorkernel-ota
$(call pretty,"Processing following kernel modules for vendor: $(BOARD_VENDOR_KERNEL_MODULES)")