linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hexagon: suppress error message for 'make clean'
@ 2020-04-24 16:15 Masahiro Yamada
  2020-04-24 19:06 ` Brian Cain
  0 siblings, 1 reply; 3+ messages in thread
From: Masahiro Yamada @ 2020-04-24 16:15 UTC (permalink / raw)
  To: Brian Cain, linux-hexagon; +Cc: linux-kernel, Masahiro Yamada

'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>
---

 arch/hexagon/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH] hexagon: suppress error message for 'make clean'
  2020-04-24 16:15 [PATCH] hexagon: suppress error message for 'make clean' Masahiro Yamada
@ 2020-04-24 19:06 ` Brian Cain
  2020-05-01  5:33   ` Masahiro Yamada
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Cain @ 2020-04-24 19:06 UTC (permalink / raw)
  To: 'Masahiro Yamada', linux-hexagon; +Cc: linux-kernel

> -----Original Message-----
> From: linux-hexagon-owner@vger.kernel.org <linux-hexagon-
> owner@vger.kernel.org> On Behalf Of Masahiro Yamada
...
> '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>


> ---
> 
>  arch/hexagon/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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
> --
> 2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] hexagon: suppress error message for 'make clean'
  2020-04-24 19:06 ` Brian Cain
@ 2020-05-01  5:33   ` Masahiro Yamada
  0 siblings, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2020-05-01  5:33 UTC (permalink / raw)
  To: bcain; +Cc: linux-hexagon, Linux Kernel Mailing List

On Sat, Apr 25, 2020 at 4:06 AM Brian Cain <bcain@codeaurora.org> wrote:
>
> > -----Original Message-----
> > From: linux-hexagon-owner@vger.kernel.org <linux-hexagon-
> > owner@vger.kernel.org> On Behalf Of Masahiro Yamada
> ...
> > '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>

Applied to linux-kbuild. Thanks.


>
> > ---
> >
> >  arch/hexagon/Makefile | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > 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
> > --
> > 2.25.1
>
>


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-01  5:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-24 16:15 [PATCH] hexagon: suppress error message for 'make clean' Masahiro Yamada
2020-04-24 19:06 ` Brian Cain
2020-05-01  5:33   ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).