diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2004-04-14 00:05:38 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-14 00:05:38 -0700 |
commit | 4670ef7a163bb4aa7118b78f270723a7db177e2f (patch) | |
tree | 7a9736eccdd00436075514aeb03f2e55e90b0289 /Makefile | |
parent | c49429a6723c9818ae4fd67b38142654cc3816ef (diff) | |
download | history-4670ef7a163bb4aa7118b78f270723a7db177e2f.tar.gz |
[PATCH] kbuild: fix modules_install
The directory .tmp_versions/ was deleted during make vmlinux.
This eliminated the list of modules used for moudles_install.
The effect was that the following scenario failed:
make
make install
make modules_install
The solution is to only cleanup .tmp_versions when building modules.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile index 6fc37635b2cacd..ae10ca65f20a03 100644 --- a/Makefile +++ b/Makefile @@ -624,8 +624,10 @@ ifneq ($(KBUILD_SRC),) endif prepare0: prepare1 include/linux/version.h include/asm include/config/MARKER +ifneq ($(KBUILD_MODULES),) $(Q)rm -rf $(MODVERDIR) - $(if $(CONFIG_MODULES),$(Q)mkdir -p $(MODVERDIR)) + $(Q)mkdir -p $(MODVERDIR) +endif # All the preparing.. prepare-all: prepare0 prepare |