mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: Re: [PATCH] ppc: Test for compiler options
Date: Tue, 28 Apr 2020 11:41:58 +0200	[thread overview]
Message-ID: <20200428094158.GZ5877@pengutronix.de> (raw)
In-Reply-To: <20200427191334.9839-1-s.hauer@pengutronix.de>

On Mon, Apr 27, 2020 at 09:13:34PM +0200, Sascha Hauer wrote:
> The -mno-spe and -mspe=no options are not available on all compilers.
> Call cc-option to set them only when they exist.
> 
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
>  arch/ppc/Makefile | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
> index ebf60edede..67b4b930e7 100644
> --- a/arch/ppc/Makefile
> +++ b/arch/ppc/Makefile
> @@ -4,6 +4,9 @@ CPPFLAGS += -ffixed-r14 -m32 	\
>  	-meabi -D __PPC__ -D CONFIG_PPC \
>  	-fno-strict-aliasing -mno-spe -mspe=no
>  
> +CPPFLAGS += $(call cc-option,-mno-spe)
> +CPPFLAGS += $(call cc-option,-mspe=no)
> +

Of course the options should be removed two lines further up.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2020-04-28  9:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-27 19:13 Sascha Hauer
2020-04-28  9:41 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200428094158.GZ5877@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox