OSDN Git Service

kernel.mk: install modules for 'kernel' goal
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 21 Jun 2019 02:41:21 +0000 (10:41 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 21 Jun 2019 02:41:21 +0000 (10:41 +0800)
When do 'make kernel' on the top of android-x86 tree, only $OUT/kernel is
generated but the modules are not installed to $OUT/system/lib/modules.
The patch fixes that.

build/tasks/kernel.mk

index 6ecf0fe..be21d13 100644 (file)
@@ -104,7 +104,7 @@ installclean: FILES += $(KBUILD_OUTPUT) $(INSTALLED_KERNEL_TARGET)
 TARGET_PREBUILT_KERNEL := $(BUILT_KERNEL_TARGET)
 
 .PHONY: kernel $(if $(KERNEL_ARCH_CHANGED),$(KERNEL_HEADERS_COMMON)/linux/binder.h)
-kernel: $(INSTALLED_KERNEL_TARGET)
+kernel: $(INSTALLED_KERNEL_TARGET) $(KERNEL_MODULES_DEP)
 
 endif # TARGET_PREBUILT_KERNEL