diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2015-05-11 16:37:05 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-05-12 17:22:39 -0400 |
commit | 73d8f99ce42c7da97822faed6aa14578a708b19d (patch) | |
tree | 13fd270f746dc76e15427fa8d89a2fa6eb2a3c75 /arch/mips | |
parent | 03dce595270f22d59a6f37e9170287c1afd94bc2 (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/Makefile | 2 |
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) | |||
277 | ifdef CONFIG_MIPS | 277 | ifdef CONFIG_MIPS |
278 | CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \ | 278 | CHECKFLAGS += $(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') |
281 | ifdef CONFIG_64BIT | 281 | ifdef CONFIG_64BIT |
282 | CHECKFLAGS += -m64 | 282 | CHECKFLAGS += -m64 |
283 | endif | 283 | endif |