* zImage wrapper broken when cross compiling on Intel
@ 2006-10-10 15:39 Adam Litke
0 siblings, 0 replies; only message in thread
From: Adam Litke @ 2006-10-10 15:39 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
Hey Paul. My cross compile environment has been broken by the zImage
wrapper stuff. I set both CROSS_COMPILE and CROSS32_COMPILE and build
my pSeries kernels on an Intel box. The current logic is setting
CROSSWRAP := -C $(CROSS32_COMPILE) but my cross32 tools don't understand
the 64bit binaries I built :)
I am not quite sure how to properly handle my case without breaking one
of the other cases you are probably accounting for with the current
logic. For the time being I've hacked my Makefile with the following
patch (just to get things working again for me).
Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff -upN reference/arch/powerpc/boot/Makefile current/arch/powerpc/boot/Makefile
--- reference/arch/powerpc/boot/Makefile
+++ current/arch/powerpc/boot/Makefile
@@ -104,13 +104,13 @@ wrapperbits := $(extra-y) $(addprefix $(
#############
# Bits for building various flavours of zImage
-ifneq ($(CROSS32_COMPILE),)
-CROSSWRAP := -C $(CROSS32_COMPILE)
-else
+#ifneq ($(CROSS32_COMPILE),)
+#CROSSWRAP := -C $(CROSS32_COMPILE)
+#else
ifneq ($(CROSS_COMPILE),)
CROSSWRAP := -C $(CROSS_COMPILE)
endif
-endif
+#endif
quiet_cmd_wrap = WRAP $@
cmd_wrap =$(CONFIG_SHELL) $(wrapper) -c -o $@ -p $2 $(CROSSWRAP) vmlinux
--
Adam Litke - (agl at us.ibm.com)
IBM Linux Technology Center
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-10 15:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-10 15:39 zImage wrapper broken when cross compiling on Intel Adam Litke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).