zImage wrapper broken when cross compiling on Intel
Adam Litke
agl at us.ibm.com
Wed Oct 11 01:39:30 EST 2006
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
More information about the Linuxppc-dev
mailing list