2.6.14-rc1 ia64 rebuilds everything every time

From: Keith Owens <kaos_at_sgi.com>
Date: 2005-09-13 16:32:04
Because of the recursive definition in ia64 asm-offset.c, where the
file has to exist with a dummy line before it can be generated, we end
up with this recursive dependency.

arch/ia64/kernel/asm-offsets.s -> include/asm/asm-offsets.h (.cmd file)
include/asm/asm-offsets.h -> arch/ia64/kernel/asm-offsets.s (explicit)

Every 2.6.14-rc1 build rebuilds asm-offsets.s, because it asm-offsets.h
is newer.  Which then rebuilds asm-offsets.h, which in turn rebuilds
everything else.

Best solution: remove (and forbid) recursive definitions in asm-offset.c.

Kludge 1: edit arch/$(ARCH)/kernel/.asm-offsets.s.cmd to remove
include/asm/asm-offsets.h.

Kludge 2: Build arch/$(ARCH)/kernel/asm-offsets.s as a temporary file
then check if it has changed or not, only updating the real
arch/$(ARCH)/kernel/asm-offsets.s if there is any change.

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Sep 13 16:33:32 2005

This archive was generated by hypermail 2.1.8 : 2005-09-13 16:33:39 EST