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:48:30 +0000 (10:48 +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.

core/tasks/kernel.mk

index 4a42470..89377f1 100644 (file)
@@ -91,7 +91,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