The patch titled
kbuild: build a single module using 'make dir/module.ko'
has been added to the -mm tree. Its filename is
kbuild-build-a-single-module-using-make-dir-moduleko.patch
Patches currently in -mm which might be from [EMAIL PROTECTED] are
kbuild-build-a-single-module-using-make-dir-moduleko.patch
From: Sam Ravnborg <[EMAIL PROTECTED]>
Using the syntax:
make dir/module.ko
kbuild now allows one to build a module including the final link stage.
This is usefull when one only wants to compile a single module and thus do
not have to wait until a full kernel has finished compiling. Tested by:
randy_dunlap <[EMAIL PROTECTED]>
Signed-off-by: Sam Ravnborg <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
Makefile | 4 ++++
1 files changed, 4 insertions(+)
diff -puN Makefile~kbuild-build-a-single-module-using-make-dir-moduleko Makefile
--- 25/Makefile~kbuild-build-a-single-module-using-make-dir-moduleko Wed Jul
6 13:36:22 2005
+++ 25-akpm/Makefile Wed Jul 6 13:36:22 2005
@@ -793,6 +793,9 @@ export CPPFLAGS_vmlinux.lds += -P -C -U$
$(Q)$(MAKE) $(build)=$(@D) $@
%.o: %.c scripts FORCE
$(Q)$(MAKE) $(build)=$(@D) $@
+%.ko: scripts FORCE
+ $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) $(build)=$(@D)
$(@:.ko=.o)
+ $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.modpost
%/: scripts prepare FORCE
$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) $(build)=$(@D)
%.lst: %.c scripts FORCE
@@ -1034,6 +1037,7 @@ help:
@echo ' modules_install - Install all modules'
@echo ' dir/ - Build all files in dir and below'
@echo ' dir/file.[ois] - Build specified target only'
+ @echo ' dir/file.ko - Build module including final link'
@echo ' rpm - Build a kernel as an RPM package'
@echo ' tags/TAGS - Generate tags file for editors'
@echo ' cscope - Generate cscope index'
_
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html