kbuild: Fix parallel build

From: Sam Ravnborg
Date: Wed Aug 18 2004 - 16:19:53 EST


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/08/17 22:35:04+02:00 sam@xxxxxxxxxxxxxxxxx
# kbuild: Fix parallel build in a distclean'ed tree
#
# Fixes the following error:
# make: *** No rule to make target `.tmp_kallsyms2.S', needed by `.tmp_kallsyms2.o'.
#
# Problem is that make does not know it have to visit scripts before it can use $(KALLSYMS)
# $(KALLSYMS) is a dependency to .tmp_kallsyms% but make suddenly complains about
# .tmp_kallsyms2 for some reasons.
#
# Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
#
# Makefile
# 2004/08/17 22:34:48+02:00 sam@xxxxxxxxxxxxxxxxx +3 -0
# Needs to tell make that $(KALLSYMS) is only build after visiting scripts
#
diff -Nru a/Makefile b/Makefile
--- a/Makefile 2004-08-19 01:04:26 +02:00
+++ b/Makefile 2004-08-19 01:04:26 +02:00
@@ -600,6 +600,9 @@
.tmp_vmlinux3: $(vmlinux-objs) .tmp_kallsyms2.o arch/$(ARCH)/kernel/vmlinux.lds FORCE
$(call if_changed_rule,vmlinux__)

+# Needs to visit scripts/ before $(KALLSYMS) can be used.
+$(KALLSYMS): scripts ;
+
endif

# Finally the vmlinux rule
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/