aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2015-05-11 16:37:05 -0400
committerRalf Baechle <ralf@linux-mips.org>2015-05-12 17:22:39 -0400
commit73d8f99ce42c7da97822faed6aa14578a708b19d (patch)
tree13fd270f746dc76e15427fa8d89a2fa6eb2a3c75 /arch/mips
parent03dce595270f22d59a6f37e9170287c1afd94bc2 (diff)
MIPS: Fix wrong CHECKFLAGS (sparse builds) with GCC 5.1
GCC 5.1 defines __REGISTER_PREFIX__ to $. This will break sparse command line (and build fails with: /bin/sh: syntax error: unexpected "(") since make tries to expand starting with the dollar sign with a make variable. Prevent that by using double dollar sign. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/10025/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 5200f649dd4e..ae2dd59050f7 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -277,7 +277,7 @@ LDFLAGS += -m $(ld-emul)
277ifdef CONFIG_MIPS 277ifdef CONFIG_MIPS
278CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \ 278CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \
279 egrep -vw '__GNUC_(|MINOR_|PATCHLEVEL_)_' | \ 279 egrep -vw '__GNUC_(|MINOR_|PATCHLEVEL_)_' | \
280 sed -e "s/^\#define /-D'/" -e "s/ /'='/" -e "s/$$/'/") 280 sed -e "s/^\#define /-D'/" -e "s/ /'='/" -e "s/$$/'/" -e 's/\$$/&&/g')
281ifdef CONFIG_64BIT 281ifdef CONFIG_64BIT
282CHECKFLAGS += -m64 282CHECKFLAGS += -m64
283endif 283endif