Skip to contentSkip to conversation

Fix boot wrapper invocation if CROSS_COMPILE contains spaces

PATCH New Michael Ellerman 1 participant 1 message Sep 30, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix boot wrapper invocation if CROSS_COMPILE contains spaces

My CROSS_COMPILE is "ccache /opt/compilers/blah", which confuses the boot wrapper script. Quote CROSS_COMPILE and CROSS32_COMPILE so they can safely contain spaces.

---

 arch/powerpc/boot/Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/boot/Makefile +2 -2
Index: to-merge/arch/powerpc/boot/Makefile
===================================================================
@@ -105,10 +105,10 @@ wrapperbits	:= $(extra-y) $(addprefix $(
 # Bits for building various flavours of zImage
 
 ifneq ($(CROSS32_COMPILE),)
-CROSSWRAP := -C $(CROSS32_COMPILE)
+CROSSWRAP := -C "$(CROSS32_COMPILE)"
 else
 ifneq ($(CROSS_COMPILE),)
-CROSSWRAP := -C $(CROSS_COMPILE)
+CROSSWRAP := -C "$(CROSS_COMPILE)"
 endif
 endif