On Sun, Oct 21, 2007 at 10:59:45PM -0700, David Miller wrote:
>
> Sam, some recent change causes the "make image" target on sparc64 to
> clobber .tmp_versions/, leaving it an empty directory.
>
> If I "rm -rf .tmp_versions" rerun a plain "make", the .tmp_versions/
> files get regenerated correctly.
>
> The dependency of sparc64's 'image' target is "vmlinux FORCE"
> and I notice x86 uses different dependencies which is why
> perhaps you didn't notice this bug.
>
> A quick glance shows that powerpc might hit this problem too.
>
> I think this got introduced recently, say in the past 4 days.
Fixed by the following patch. Thanks for reporting.
I will push later today to mainline.
Sam
diff --git a/Makefile b/Makefile
index 50bb50d..f4238b2 100644
--- a/Makefile
+++ b/Makefile
@@ -1512,8 +1512,9 @@ quiet_cmd_depmod = DEPMOD $(KERNELRELEASE)
fi
# 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) \
$(NOSTDINC_FLAGS) $(KBUILD_CPPFLAGS) \
-
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html