Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xtensa: don't use echo -e needlessly

-e is not needed to output strings without escape sequences. This breaks
big endian FSF build when the shell is dash, because its builtin echo
doesn't understand '-e' switch and outputs it in the echoed string.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>

authored by

Max Filippov and committed by
Chris Zankel
123f15e6 fff96d69

+3 -3
+2 -2
arch/xtensa/Makefile
··· 55 55 LDFLAGS := --no-relax 56 56 endif 57 57 58 - ifeq ($(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#"),1) 58 + ifeq ($(shell echo __XTENSA_EB__ | $(CC) -E - | grep -v "\#"),1) 59 59 CHECKFLAGS += -D__XTENSA_EB__ 60 60 endif 61 - ifeq ($(shell echo -e __XTENSA_EL__ | $(CC) -E - | grep -v "\#"),1) 61 + ifeq ($(shell echo __XTENSA_EL__ | $(CC) -E - | grep -v "\#"),1) 62 62 CHECKFLAGS += -D__XTENSA_EL__ 63 63 endif 64 64
+1 -1
arch/xtensa/boot/Makefile
··· 12 12 KBUILD_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include 13 13 HOSTFLAGS += -Iarch/$(ARCH)/boot/include 14 14 15 - BIG_ENDIAN := $(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#") 15 + BIG_ENDIAN := $(shell echo __XTENSA_EB__ | $(CC) -E - | grep -v "\#") 16 16 17 17 export ccflags-y 18 18 export BIG_ENDIAN