summaryrefslogtreecommitdiff
path: root/arch/hexagon
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-04-24 19:15:02 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2020-05-12 07:28:32 +0300
commit6632fa8fcabacd75329bd2ea78cba5c43754639a (patch)
tree602af20c6419e5a74c5c4073b7d5ef2bb45abab8 /arch/hexagon
parent7e49afc03212010d0ee27532a75cfeb0125bd868 (diff)
downloadlinux-6632fa8fcabacd75329bd2ea78cba5c43754639a.tar.xz
hexagon: suppress error message for 'make clean'
'make ARCH=hexagon clean' emits an error message as follows: $ make ARCH=hexagon clean gcc: error: unrecognized command line option '-G0' You can suppress it by setting the correct CROSS_COMPILE=, but we should not require any compiler for cleaning. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Brian Cain <bcain@codeaurora.org>
Diffstat (limited to 'arch/hexagon')
-rw-r--r--arch/hexagon/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/hexagon/Makefile b/arch/hexagon/Makefile
index 4c5858b80f0e..c168c6980d05 100644
--- a/arch/hexagon/Makefile
+++ b/arch/hexagon/Makefile
@@ -30,7 +30,7 @@ TIR_NAME := r19
KBUILD_CFLAGS += -ffixed-$(TIR_NAME) -DTHREADINFO_REG=$(TIR_NAME) -D__linux__
KBUILD_AFLAGS += -DTHREADINFO_REG=$(TIR_NAME)
-LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
+LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name 2>/dev/null)
libs-y += $(LIBGCC)
head-y := arch/hexagon/kernel/head.o