Skip to contentSkip to conversation

hexagon: suppress error message for 'make clean'

PATCH In review Masahiro Yamada 2 participants 3 messages Apr 24, 2020 – May 1, 2020 Qualcomm hexagon architecture

lore
Share & tools
lore
#0 lore raw

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
index 4c5858b80f0e..c168c6980d05 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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.

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..c168c6980d05 100644

arch/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

#2 lore raw
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.

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..c168c6980d05 100644

arch/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