Commit:     ab19f8794a66910ef9b33041ccfa05b6b12ab6c9
Parent:     437374e9a95062fe310b901e48585691edaf5dd0
Author:     Sam Ravnborg <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 22 11:23:07 2007 +0200
Committer:  Sam Ravnborg <[EMAIL PROTECTED]>
CommitDate: Mon Oct 22 20:04:37 2007 +0200

    kbuild: fix modules_install after a 'make vmlinux'
    make vmlinux would delete the content of $(MODVERDIR)
    equals .tmp_versions. This caused a subsequent
    make modules_install to fail.
    Fix it so we clean the directory only for the
    modules build - but we still unconditionally create it so
    we can do:
    make dir/file.ko
    without a preceeding make modules.
    Reported by David Miller <[EMAIL PROTECTED]>
    Signed-off-by: Sam Ravnborg <[EMAIL PROTECTED]>
    Cc: David Miller <[EMAIL PROTECTED]>
 Makefile |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 50bb50d..f4238b2 100644
--- a/Makefile
+++ b/Makefile
@@ -1512,8 +1512,9 @@ quiet_cmd_depmod = DEPMOD  $(KERNELRELEASE)
 # Create temporary dir for module support files
-cmd_crmodverdir = $(Q)mkdir -p $(MODVERDIR); rm -f $(MODVERDIR)/*
+# clean it up only when building all modules
+cmd_crmodverdir = $(Q)mkdir -p $(MODVERDIR) \
+                  $(if $(KBUILD_MODULES),; rm -f $(MODVERDIR)/*)
 a_flags = -Wp,-MD,$(depfile) $(KBUILD_AFLAGS) $(AFLAGS_KERNEL) \
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to