* [Patch] Fix IA64 compilation with separate build tree.
@ 2003-11-03 23:59 Peter Chubb
2003-11-07 23:58 ` David Mosberger
0 siblings, 1 reply; 2+ messages in thread
From: Peter Chubb @ 2003-11-03 23:59 UTC (permalink / raw)
To: linux-ia64
Hi David,
The appended patch (as we discussed before) is necessary to allow
separate source and build trees for IA64. Without it, offsets.h
cannot be built if you do, say,
make O=../build/linux-2.5-ia64
and the gas checks never succeed.
diff -Nur --exclude=RCS --exclude=CVS --exclude=SCCS --exclude=BitKeeper --exclude=ChangeSet linux-2.5-import/arch/ia64/Makefile linux-2.5-ia64-up/arch/ia64/Makefile
--- linux-2.5-import/arch/ia64/Makefile Wed Oct 15 15:30:03 2003
+++ linux-2.5-ia64-up/arch/ia64/Makefile Wed Oct 15 15:43:31 2003
@@ -14,7 +14,7 @@
OBJCOPYFLAGS := --strip-all
LDFLAGS_vmlinux := -static
-LDFLAGS_MODULE += -T arch/ia64/module.lds
+LDFLAGS_MODULE += -T $(srctree)/arch/ia64/module.lds
AFLAGS_KERNEL := -mconstant-gp
EXTRA :
@@ -25,9 +25,9 @@
GCC_VERSION=$(shell $(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.')
GCC_MINOR_VERSION=$(shell $(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f2 -d'.')
-GAS_STATUS=$(shell arch/ia64/scripts/check-gas $(CC) $(OBJDUMP))
+GAS_STATUS=$(shell $(srctree)/arch/ia64/scripts/check-gas $(CC) $(OBJDUMP))
-CPPFLAGS += $(shell arch/ia64/scripts/toolchain-flags $(CC) $(OBJDUMP))
+CPPFLAGS += $(shell $(srctree)/arch/ia64/scripts/toolchain-flags $(CC) $(OBJDUMP))
ifeq ($(GAS_STATUS),buggy)
$(error Sorry, you need a newer version of the assember, one that is built from \
@@ -88,12 +88,15 @@
prepare: include/asm-ia64/offsets.h
-include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
+arch/ia64/kernel/asm-offsets.s: include/asm include/linux/version.h
+
+include/asm-ia64/offsets.h: arch/ia64/kernel/asm-offsets.s
$(call filechk,gen-asm-offsets)
arch/ia64/kernel/asm-offsets.s: include/asm-ia64/.offsets.h.stamp
include/asm-ia64/.offsets.h.stamp:
+ mkdir -p include/asm-ia64
[ -s include/asm-ia64/offsets.h ] \
|| echo "#define IA64_TASK_SIZE 0" > include/asm-ia64/offsets.h
touch $@
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Patch] Fix IA64 compilation with separate build tree.
2003-11-03 23:59 [Patch] Fix IA64 compilation with separate build tree Peter Chubb
@ 2003-11-07 23:58 ` David Mosberger
0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2003-11-07 23:58 UTC (permalink / raw)
To: linux-ia64
>>>>> On Tue, 4 Nov 2003 10:59:07 +1100, Peter Chubb <peterc@gelato.unsw.edu.au> said:
Peter> Hi David,
Peter> The appended patch (as we discussed before) is necessary to allow
Peter> separate source and build trees for IA64. Without it, offsets.h
Peter> cannot be built if you do, say,
Peter> make O=../build/linux-2.5-ia64
Peter> and the gas checks never succeed.
Argh, I thought this was already in my tree but apparently it is not.
Since it's hardly a critical bug-fix, could you retransmit for 2.6.1?
Thanks,
--david
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-07 23:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-03 23:59 [Patch] Fix IA64 compilation with separate build tree Peter Chubb
2003-11-07 23:58 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox