summaryrefslogtreecommitdiffstats
path: root/arch/mips/Makefile
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2005-07-07 13:18:49 +0200
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 20:31:37 +0200
commit73f74e23a6d9f3aabccf966c18cff04a74afed7f (patch)
tree5e72884a7cef2929ec9935cf05ad068098f6a44d /arch/mips/Makefile
parentHack to make compiles for the other endianness easier. (diff)
downloadlinux-73f74e23a6d9f3aabccf966c18cff04a74afed7f.tar.xz
linux-73f74e23a6d9f3aabccf966c18cff04a74afed7f.zip
Grep deesn't like shell-style matching...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Thiemo Seufer <ths@networkno.de>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r--arch/mips/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 056aae597123..d51b2b49c78f 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -103,8 +103,8 @@ MODFLAGS += -mlong-calls
# carefully avoid to add it redundantly because gcc 3.3/3.4 complains
# when fed the toolchain default!
#
-cflags-$(CONFIG_CPU_BIG_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips*el-linux*' && echo -EB)
-cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips*el-linux*' || echo -EL)
+cflags-$(CONFIG_CPU_BIG_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-linux.*' && echo -EB)
+cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-linux.*' || echo -EL)
cflags-$(CONFIG_SB1XXX_CORELIS) += -mno-sched-prolog -fno-omit-frame-pointer