All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/4] toolchain: set the ssp gcc option in kconfig
Date: Tue, 12 Mar 2019 09:52:59 +0100	[thread overview]
Message-ID: <d24bdf97-bea5-f64a-6664-b4c5a356aeb3@mind.be> (raw)
In-Reply-To: <27512_1552370795_5C874C6B_27512_48_1_20190312060632.GA4924@r-lnx-nyma7486-2>



On 12/03/2019 07:06, yann.morin at orange.com wrote:
> Arnout, All,
> 
> On 2019-03-12 01:02 +0100, Arnout Vandecappelle spake thusly:
>> On 11/03/2019 07:48, yann.morin at orange.com wrote:
>> [snip]
> [--SNIP--]
>>> +ifneq ($(BR2_SSP_OPTION),)
>>> +TOOLCHAIN_WRAPPER_ARGS += -DBR_SSP_OPTION='$(BR2_SSP_OPTION)'
>>>  endif
>>  I'd really like to use the BR_ADDITIONAL_CFLAGS instead, by changing the
>> definition in the .mk file to something like:
>>
>> TOOLCHAIN_WRAPPER_OPTS = \
>>         $(call qstrip,$(BR2_TARGET_OPTIMIZATION)) \
>> 	$(call qstrip,$(BR2_SSP_OPTION))
>>
>> TOOLCHAIN_WRAPPER_ARGS += \
>>  	-DBR_ADDITIONAL_CFLAGS='$(foreach f,$(TOOLCHAIN_WRAPPER_OPTS),"$(f)"$(comma))'
> 
> OK, will do.

 Note that we don't have a runtime test for BR2_TRGET_OPTIMIZATION so some
manual testing will be needed.


>> (note that I preferred the qstrip instead of the ifdef here, and adding quotes
>> explicitly in the foreach, but you may want to implement it differently).
> 
> Yeah, I tried to avoid the qstriop-then-strip-anyway dance, but it is
> indeed nicer the way you wrote it.

 I like the qstrip-then-quote dance, because it makes things consistent.

 Note that this is a very special case because we want to quote each
space-separated option here; in general we actually want to make sure the spaces
are quoted when we do a qstrip-then-quote dance.

 Regards,
 Arnout

  reply	other threads:[~2019-03-12  8:52 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1552286891.git.yann.morin@orange.com>
2019-03-11  6:48 ` [Buildroot] [PATCH 1/4] toolchain: set the ssp gcc option in kconfig yann.morin at orange.com
2019-03-12  0:02   ` Arnout Vandecappelle
2019-03-12  6:06     ` yann.morin at orange.com
2019-03-12  8:52       ` Arnout Vandecappelle [this message]
2019-03-11  6:48 ` [Buildroot] [PATCH 2/4] toolchain: check the SSP option is known yann.morin at orange.com
2019-03-12  0:25   ` Arnout Vandecappelle
2019-03-12  6:18     ` yann.morin at orange.com
2019-03-12  8:53       ` Arnout Vandecappelle
2019-03-12  9:13         ` yann.morin at orange.com
     [not found]     ` <20190312061810.GB4924@r-lnx-nyma7486-2>
2019-03-12  6:41       ` yann.morin at orange.com
2019-03-12  8:49         ` Arnout Vandecappelle
2019-03-12  9:11           ` yann.morin at orange.com
2019-03-11  6:48 ` [Buildroot] [PATCH 3/4] toolchain: -fstack-protector-strong can be back-ported yann.morin at orange.com
2019-03-11  6:48 ` [Buildroot] [PATCH 4/4] toolchain: allow PIC/PIE without RELRO yann.morin at orange.com
2019-03-12  0:36   ` Arnout Vandecappelle
2019-03-12  6:22     ` yann.morin at orange.com
2019-03-12  8:57       ` Arnout Vandecappelle
2019-03-12 14:37         ` Matthew Weber

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=d24bdf97-bea5-f64a-6664-b4c5a356aeb3@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.