diff options
author | Andrew Morton <akpm@osdl.org> | 2004-04-26 09:16:34 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-26 09:16:34 -0700 |
commit | 95065ad3fa787c417008a36d3a5d9a3bab17ab98 (patch) | |
tree | 40c3f34af6cc9d0a43c0e999addfa533c3ed9902 /Makefile | |
parent | e354a56d5cdeeced8b3e18d23f68e436237c9dda (diff) | |
download | history-95065ad3fa787c417008a36d3a5d9a3bab17ab98.tar.gz |
[PATCH] kbuild: Improved external module support
From: Sam Ravnborg <sam@ravnborg.org>
The external module support recently introduced caused a number of problems:
- To build an external module the Module.symvers file was needed
- To create the Module.symvers file a module was required
- If Module.symvers was missing kbuild boiled out with an error
- If vmlinux was missing also the stage 2 of module build failed (make -k)
- It was not documented what was needed to actually bauild a module
The following patch addresses this by adding the following functionality:
- Always generate the Module.symvers file
- Ignore a missing Module.symvers file
- Add a new target modules_prepare, it prepares the kernel for building
external modules, and is also usefull with O=
- And it adds some more comments to Makefile.modpost, so others may follow
it with some luck
- .modpost.cmd is no longer generated
This should close all reports on issues with respect to building external
modules with current kernel - which has been identified as kernel problems.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile index 93a3212b94432..a73ad84da7494 100644 --- a/Makefile +++ b/Makefile @@ -715,8 +715,12 @@ modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) @echo ' Building modules, stage 2.'; $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.modpost -# Install modules +# Target to prepare building external modules +.PHONY: modules_prepare +modules_prepare: prepare-all scripts + +# Target to install modules .PHONY: modules_install modules_install: _modinst_ _modinst_post |