Skip to contentSkip to conversation

zImage wrapper broken when cross compiling on Intel

PATCH Adam Litke 1 participant 1 message Oct 10, 2006 PowerPC

lore
Share & tools
lore

Adam Litke

author
#0 lore raw

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(-)
arch/powerpc/boot/Makefile +4 -4
diff -upN 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
Signature · 2 lines
Adam Litke - (agl at us.ibm.com)
IBM Linux Technology Center