* [PATCH] gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS}
@ 2012-09-26 9:45 Phil Blundell
2012-09-26 9:54 ` Martin Jansa
2012-09-26 10:46 ` Henning Heinold
0 siblings, 2 replies; 8+ messages in thread
From: Phil Blundell @ 2012-09-26 9:45 UTC (permalink / raw)
To: OE-core
This allows BSPs for architectures with no thread support to set (for
example) "GCCTHREADS=no" without having to override all the other configure
parameters.
Signed-off-by: Phil Blundell <pb@pbcl.net>
---
meta/recipes-devtools/gcc/gcc-configure-common.inc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index 908ad3e..504bfaa 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -26,12 +26,13 @@ EXTRA_OECONF_INITIAL ?= ""
EXTRA_OECONF_INTERMEDIATE ?= ""
GCCMULTILIB = "--disable-multilib"
+GCCTHREADS = "posix"
EXTRA_OECONF = "${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', True) != 'no']} \
--with-gnu-ld \
--enable-shared \
--enable-languages=${LANGUAGES} \
- --enable-threads=posix \
+ --enable-threads=${GCCTHREADS} \
${GCCMULTILIB} \
--enable-c99 \
--enable-long-long \
--
1.7.10.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS}
2012-09-26 9:45 [PATCH] gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS} Phil Blundell
@ 2012-09-26 9:54 ` Martin Jansa
2012-09-26 9:57 ` Phil Blundell
2012-09-26 10:46 ` Henning Heinold
1 sibling, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2012-09-26 9:54 UTC (permalink / raw)
To: Phil Blundell; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 1387 bytes --]
On Wed, Sep 26, 2012 at 10:45:18AM +0100, Phil Blundell wrote:
> This allows BSPs for architectures with no thread support to set (for
> example) "GCCTHREADS=no" without having to override all the other configure
> parameters.
>
> Signed-off-by: Phil Blundell <pb@pbcl.net>
> ---
> meta/recipes-devtools/gcc/gcc-configure-common.inc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> index 908ad3e..504bfaa 100644
> --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
> +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> @@ -26,12 +26,13 @@ EXTRA_OECONF_INITIAL ?= ""
> EXTRA_OECONF_INTERMEDIATE ?= ""
>
> GCCMULTILIB = "--disable-multilib"
> +GCCTHREADS = "posix"
>
> EXTRA_OECONF = "${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', True) != 'no']} \
> --with-gnu-ld \
> --enable-shared \
> --enable-languages=${LANGUAGES} \
> - --enable-threads=posix \
> + --enable-threads=${GCCTHREADS} \
> ${GCCMULTILIB} \
> --enable-c99 \
> --enable-long-long \
> --
> 1.7.10.4
Missing PR bump
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS}
2012-09-26 9:54 ` Martin Jansa
@ 2012-09-26 9:57 ` Phil Blundell
2012-09-26 10:01 ` Martin Jansa
0 siblings, 1 reply; 8+ messages in thread
From: Phil Blundell @ 2012-09-26 9:57 UTC (permalink / raw)
To: Martin Jansa; +Cc: OE-core
On Wed, 2012-09-26 at 11:54 +0200, Martin Jansa wrote:
> On Wed, Sep 26, 2012 at 10:45:18AM +0100, Phil Blundell wrote:
> > diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> > index 908ad3e..504bfaa 100644
> > --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
> > +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> > @@ -26,12 +26,13 @@ EXTRA_OECONF_INITIAL ?= ""
> > EXTRA_OECONF_INTERMEDIATE ?= ""
> >
> > GCCMULTILIB = "--disable-multilib"
> > +GCCTHREADS = "posix"
> >
> > EXTRA_OECONF = "${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', True) != 'no']} \
> > --with-gnu-ld \
> > --enable-shared \
> > --enable-languages=${LANGUAGES} \
> > - --enable-threads=posix \
> > + --enable-threads=${GCCTHREADS} \
> > ${GCCMULTILIB} \
> > --enable-c99 \
> > --enable-long-long \
> > --
> > 1.7.10.4
>
> Missing PR bump
Does it really need one? It doesn't have any impact on the value that
EXTRA_OECONF ends up with, and bumping the PRs on all the various .bb
files would make the patch about ten times the size. I can do that if
you insist but it seems like a bit of a waste of time.
p.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS}
2012-09-26 9:57 ` Phil Blundell
@ 2012-09-26 10:01 ` Martin Jansa
2012-09-26 10:28 ` Phil Blundell
0 siblings, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2012-09-26 10:01 UTC (permalink / raw)
To: Phil Blundell; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 1773 bytes --]
On Wed, Sep 26, 2012 at 10:57:41AM +0100, Phil Blundell wrote:
> On Wed, 2012-09-26 at 11:54 +0200, Martin Jansa wrote:
> > On Wed, Sep 26, 2012 at 10:45:18AM +0100, Phil Blundell wrote:
> > > diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> > > index 908ad3e..504bfaa 100644
> > > --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
> > > +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> > > @@ -26,12 +26,13 @@ EXTRA_OECONF_INITIAL ?= ""
> > > EXTRA_OECONF_INTERMEDIATE ?= ""
> > >
> > > GCCMULTILIB = "--disable-multilib"
> > > +GCCTHREADS = "posix"
> > >
> > > EXTRA_OECONF = "${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', True) != 'no']} \
> > > --with-gnu-ld \
> > > --enable-shared \
> > > --enable-languages=${LANGUAGES} \
> > > - --enable-threads=posix \
> > > + --enable-threads=${GCCTHREADS} \
> > > ${GCCMULTILIB} \
> > > --enable-c99 \
> > > --enable-long-long \
> > > --
> > > 1.7.10.4
> >
> > Missing PR bump
>
> Does it really need one? It doesn't have any impact on the value that
> EXTRA_OECONF ends up with, and bumping the PRs on all the various .bb
> files would make the patch about ten times the size. I can do that if
> you insist but it seems like a bit of a waste of time.
Sorry I haven't noticed that it's the same value as before.
But if it causes different sstate checksum than PR bump would be nice to get new
builddir (well maybe not needed after f15f61af77cc4e52a037f509f8e49e1ea530cf35).
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS}
2012-09-26 10:01 ` Martin Jansa
@ 2012-09-26 10:28 ` Phil Blundell
2012-09-26 13:46 ` Richard Purdie
0 siblings, 1 reply; 8+ messages in thread
From: Phil Blundell @ 2012-09-26 10:28 UTC (permalink / raw)
To: Martin Jansa; +Cc: OE-core
On Wed, 2012-09-26 at 12:01 +0200, Martin Jansa wrote:
> Sorry I haven't noticed that it's the same value as before.
>
> But if it causes different sstate checksum than PR bump would be nice to get new
> builddir (well maybe not needed after f15f61af77cc4e52a037f509f8e49e1ea530cf35).
OK. In that case I'll leave the patch alone for now and see if Richard
will swallow it as it stands.
p.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS}
2012-09-26 9:45 [PATCH] gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS} Phil Blundell
2012-09-26 9:54 ` Martin Jansa
@ 2012-09-26 10:46 ` Henning Heinold
2012-09-26 10:50 ` Phil Blundell
1 sibling, 1 reply; 8+ messages in thread
From: Henning Heinold @ 2012-09-26 10:46 UTC (permalink / raw)
To: Phil Blundell; +Cc: OE-core
On Wed, Sep 26, 2012 at 10:45:18AM +0100, Phil Blundell wrote:
> This allows BSPs for architectures with no thread support to set (for
> example) "GCCTHREADS=no" without having to override all the other configure
> parameters.
>
> Signed-off-by: Phil Blundell <pb@pbcl.net>
> ---
> meta/recipes-devtools/gcc/gcc-configure-common.inc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> index 908ad3e..504bfaa 100644
> --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
> +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> @@ -26,12 +26,13 @@ EXTRA_OECONF_INITIAL ?= ""
> EXTRA_OECONF_INTERMEDIATE ?= ""
>
> GCCMULTILIB = "--disable-multilib"
> +GCCTHREADS = "posix"
Hi Phil,
should that not be GCCTHREADS ?=
otherwise I do not see how it could be overwritten from outside.
Bye Henning
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS}
2012-09-26 10:46 ` Henning Heinold
@ 2012-09-26 10:50 ` Phil Blundell
0 siblings, 0 replies; 8+ messages in thread
From: Phil Blundell @ 2012-09-26 10:50 UTC (permalink / raw)
To: Henning Heinold; +Cc: OE-core
On Wed, 2012-09-26 at 12:46 +0200, Henning Heinold wrote:
> should that not be GCCTHREADS ?=
>
> otherwise I do not see how it could be overwritten from outside.
Well, a .bbappend can do it (since EXTRA_OECONF isn't assigned :=) or
you can use an override GCCTHREADS_pn-gcc-cross = "no" for example. But
yes, making it be ?= would be fine with me as well.
p.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS}
2012-09-26 10:28 ` Phil Blundell
@ 2012-09-26 13:46 ` Richard Purdie
0 siblings, 0 replies; 8+ messages in thread
From: Richard Purdie @ 2012-09-26 13:46 UTC (permalink / raw)
To: Phil Blundell; +Cc: Martin Jansa, OE-core
On Wed, 2012-09-26 at 11:28 +0100, Phil Blundell wrote:
> On Wed, 2012-09-26 at 12:01 +0200, Martin Jansa wrote:
> > Sorry I haven't noticed that it's the same value as before.
> >
> > But if it causes different sstate checksum than PR bump would be nice to get new
> > builddir (well maybe not needed after f15f61af77cc4e52a037f509f8e49e1ea530cf35).
>
> OK. In that case I'll leave the patch alone for now and see if Richard
> will swallow it as it stands.
I've merged it, lets see how that previous commit stands up to this
test. I did change it to ?=, not that it matters a great deal.
Cheers,
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-09-26 13:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-26 9:45 [PATCH] gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS} Phil Blundell
2012-09-26 9:54 ` Martin Jansa
2012-09-26 9:57 ` Phil Blundell
2012-09-26 10:01 ` Martin Jansa
2012-09-26 10:28 ` Phil Blundell
2012-09-26 13:46 ` Richard Purdie
2012-09-26 10:46 ` Henning Heinold
2012-09-26 10:50 ` Phil Blundell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox