hexagon: suppress error message for 'make clean'
PATCH 1/1 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.
---
arch/hexagon/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/hexagon/Makefile +1 -1
@@ -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
Signature · 1 line
2.25.1
Quoted 3 lines
-----Original Message-----
From: [email protected] <linux-hexagon- [email protected]> On Behalf Of Masahiro Yamada
...
Quoted 9 lines
'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 <[email protected]>
Quoted 22 lines
---
arch/hexagon/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/hexagon/Makefile index renamed from arch/hexagon/Makefile +0
-0
4c5858b80f0e..c168c6980d05100644arch/hexagon/Makefile +0
-0@@ -30,7 +30,7 @@ TIR_NAME := r19 KBUILD_CFLAGS += -ffixed-$(TIR_NAME) -DTHREADINFO_REG=$(TIR_NAME) -D__linux__
KBUILD_AFLAGS+= - DTHREADINFO_REG=$(TIR_NAME)arch/hexagon/Makefile +2
-2-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 --2.25.1
Quoted 10 lines · Brian Cain
Quoted 4 lines
-----Original Message-----
From: [email protected] <linux-hexagon- [email protected]> On Behalf Of Masahiro Yamada...
Quoted 5 lines
'make ARCH=hexagon clean' emits an error message as follows:
$ make ARCH=hexagon clean gcc: error: unrecognized command line option '-G0'
Quoted 7 lines
Quoted 4 lines
You can suppress it by setting the correct CROSS_COMPILE=, but we should not require any compiler for cleaning.
Signed-off-by Masahiro Yamada <[email protected]>Acked-by Brian Cain <[email protected]>
Applied to linux-kbuild. Thanks.
Quoted 25 lines
Quoted 23 lines
---
arch/hexagon/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/hexagon/Makefile index renamed from arch/hexagon/Makefile +0
-0
4c5858b80f0e..c168c6980d05100644arch/hexagon/Makefile +0
-0@@ -30,7 +30,7 @@ TIR_NAME := r19 KBUILD_CFLAGS += -ffixed-$(TIR_NAME) -DTHREADINFO_REG=$(TIR_NAME) -D__linux__
KBUILD_AFLAGS+= - DTHREADINFO_REG=$(TIR_NAME)arch/hexagon/Makefile +2
-2-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 --2.25.1
Signature · 2 lines
Best Regards Masahiro Yamada