aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-02-08 01:59:13 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-02-08 01:59:13 -0600
commitac844bd1fe2f451e6a44d4880567089b6903275c (patch)
tree15a0d68f883718fe25c21b065de3d579f8f7768e /Makefile
parent03e218313940d2948c2b72df2710e193e42acca5 (diff)
downloadhistory-ac844bd1fe2f451e6a44d4880567089b6903275c.tar.gz
kbuild: Handle external SUBDIRS with modversions
We need to collect a list of all modules during the recursive build. I used a "touch .tmp_versions/<path/to/module.ko>" to do so, which however doesn't work so well, when path/to isn't inside the kernel tree. The best way to build external modules is currently using kbuild by saying "make SUBDIRS=/some/external/dir modules", which was thus broken. While this way is not all that optimal and I hope to come up with something better before 2.6, it works and should keep working, so this patch fixes the usage above. Instead of touching files with the entire path added, we just create a <module>.mod file in $(MODVERDIR) now, and save the path to the module.ko in it. Since module names are unique, a flat hierarchy is actually fine here.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 51272d5a3c91c..aac4bf49d26b8 100644
--- a/Makefile
+++ b/Makefile
@@ -408,6 +408,7 @@ ifdef CONFIG_MODVERSIONS
ifdef KBUILD_MODULES
ifeq ($(origin SUBDIRS),file)
$(Q)rm -rf $(MODVERDIR)
+ $(Q)mkdir $(MODVERDIR)
else
@echo '*** Warning: Overriding SUBDIRS on the command line can cause'
@echo '*** inconsistencies with module symbol versions'