MIPS: zboot: Consolidate compiler flag filtering.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 26 Dec 2016 18:57:52 +0000 (19:57 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Jan 2017 15:48:40 +0000 (16:48 +0100)
Al Viro noticed that we were using two different methods to filter out
flags from KBUILD_CFLAGS.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
arch/mips/boot/compressed/Makefile

index 41564a4db6f726177185fea4921b8370cf9e64e6..c675eece389a41c036c4ff2e1aeaf89509368a1f 100644 (file)
@@ -18,7 +18,7 @@ include $(srctree)/arch/mips/Kbuild.platforms
 BOOT_HEAP_SIZE := 0x400000
 
 # Disable Function Tracer
-KBUILD_CFLAGS := $(shell echo $(KBUILD_CFLAGS) | sed -e "s/-pg//")
+KBUILD_CFLAGS := $(filter-out -pg, $(KBUILD_CFLAGS))
 
 KBUILD_CFLAGS := $(filter-out -fstack-protector, $(KBUILD_CFLAGS))