From b2a94d623227fcddd4dfe31c0deac8430dbf2210 Mon Sep 17 00:00:00 2001 From: Greg KH Date: Wed, 13 Jul 2005 13:50:05 -0700 Subject: [PATCH] added tags patch for O=1 fix to queue. --- queue/kbuild-fix-tags-problem-with-o.patch | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 queue/kbuild-fix-tags-problem-with-o.patch diff --git a/queue/kbuild-fix-tags-problem-with-o.patch b/queue/kbuild-fix-tags-problem-with-o.patch new file mode 100644 index 00000000000..e1a4d0f2c2c --- /dev/null +++ b/queue/kbuild-fix-tags-problem-with-o.patch @@ -0,0 +1,52 @@ +From stable-bounces@linux.kernel.org Wed Jul 13 11:55:23 2005 +Date: Wed, 13 Jul 2005 11:49:55 -0700 +From: Tom Rini +To: stable@kernel.org +Message-ID: <20050713184955.GN7741@smtp.west.cox.net> +Cc: +Subject: [stable] [PATCH] kbuild: build TAGS problem with O= + +For inclusion into 2.6.12.stable, extracted from current Linus git: + +[PATCH] kbuild: build TAGS problem with O= + + make O=/dir TAGS + + fails with: + + MAKE TAGS + find: security/selinux/include: No such file or directory + find: include: No such file or directory + find: include/asm-i386: No such file or directory + find: include/asm-generic: No such file or directory + + The problem is in this line: + ifeq ($(KBUILD_OUTPUT),) + +KBUILD_OUTPUT is not defined (ever) after make reruns itself. This line is +used in the TAGS, tags, and cscope makes. + +Signed-off-by: George Anzinger +Cc: Sam Ravnborg +Signed-off-by: Andrew Morton +Signed-off-by: Linus Torvalds + + +diff --git a/Makefile b/Makefile +--- a/Makefile ++++ b/Makefile +@@ -1149,7 +1149,7 @@ endif # KBUILD_EXTMOD + #(which is the most common case IMHO) to avoid unneeded clutter in the big tags file. + #Adding $(srctree) adds about 20M on i386 to the size of the output file! + +-ifeq ($(KBUILD_OUTPUT),) ++ifeq ($(src),$(obj)) + __srctree = + else + __srctree = $(srctree)/ + +_______________________________________________ +stable mailing list +stable@linux.kernel.org +http://linux.kernel.org/mailman/listinfo/stable + -- 2.47.3