[lkml]   [2005]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: Build TAGS problem with O=
Cleaned up to be a standard "p 1" patch.  Make the comments more concise.

make O=/dir TAGS

fails with:

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.

Here is a fix:

Signed-off-by: George Anzinger <>

--- linux-2.6.12-org/Makefile 2005-07-01 14:37:44.000000000 -0700
+++ linux-2.6.13-rc/Makefile 2005-07-05 19:45:00.588314304 -0700
@@ -1149,7 +1149,7 @@
#(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 =
__srctree = $(srctree)/

George Anzinger
HRT (High-res-timers):

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-07-07 05:11    [W:0.037 / U:5.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site