Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] Consolidate _FOR_BUILD variables
@ 2012-11-09 10:09 Ross Burton
  2012-11-09 10:09 ` [PATCH 1/2] autotools: set _FOR_BUILD variables here Ross Burton
  2012-11-09 10:09 ` [PATCH 2/2] meta: remove redundant _FOR_BUILD variables Ross Burton
  0 siblings, 2 replies; 9+ messages in thread
From: Ross Burton @ 2012-11-09 10:09 UTC (permalink / raw)
  To: openembedded-core

Hi,

It's autotools best practise[1] to use the variables CC_FOR_BUILD etc when
building tools that are required to build the rest of the package.  A lot of
packages do this, and they all repeat the same variable assignements, so
consolidate these assignments in autotools.bbclass.

Not every instance of _FOR_BUILD has been removed from the metadata, as there
are several cases where the assignment isn't the same (added flags, mainly).

Tested with a world build of oe-core, zero buildhistory differences.

Ross

[1] http://www.sourceware.org/autobook/autobook/autobook_270.html#SEC270

The following changes since commit 78983e939ab17f02f8911c8b0d0e326b419856b9:

  lib/oe/classextend: Ensure we don't extend expressions more than once (2012-11-06 09:34:47 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib ross/cross

for you to fetch changes up to 154a30032b03a9ce269752adbf5bbec85205720e:

  meta: remove redundant _FOR_BUILD variables (2012-11-09 10:00:05 +0000)

----------------------------------------------------------------
Ross Burton (2):
      autotools: set _FOR_BUILD variables here
      meta: remove redundant _FOR_BUILD variables

 meta/classes/autotools.bbclass                 |   15 +++++++++++++++
 meta/recipes-devtools/binutils/binutils.inc    |    4 ++--
 meta/recipes-devtools/rpm/rpm_5.4.9.bb         |    1 -
 meta/recipes-extended/bash/bash.inc            |    1 -
 meta/recipes-gnome/gnome/metacity_2.30.3.bb    |    5 ++---
 meta/recipes-graphics/mutter/mutter.inc        |    5 ++---
 meta/recipes-graphics/xorg-lib/libx11.inc      |    8 ++------
 meta/recipes-kernel/systemtap/systemtap_git.bb |    4 ----
 meta/recipes-support/gmp/gmp_4.2.1.bb          |    2 --
 meta/recipes-support/gmp/gmp_5.0.5.bb          |    2 --
 10 files changed, 23 insertions(+), 24 deletions(-)

Ross Burton (2):
  autotools: set _FOR_BUILD variables here
  meta: remove redundant _FOR_BUILD variables

 meta/classes/autotools.bbclass                 |   15 +++++++++++++++
 meta/recipes-devtools/binutils/binutils.inc    |    4 ++--
 meta/recipes-devtools/rpm/rpm_5.4.9.bb         |    1 -
 meta/recipes-extended/bash/bash.inc            |    1 -
 meta/recipes-gnome/gnome/metacity_2.30.3.bb    |    5 ++---
 meta/recipes-graphics/mutter/mutter.inc        |    5 ++---
 meta/recipes-graphics/xorg-lib/libx11.inc      |    8 ++------
 meta/recipes-kernel/systemtap/systemtap_git.bb |    4 ----
 meta/recipes-support/gmp/gmp_4.2.1.bb          |    2 --
 meta/recipes-support/gmp/gmp_5.0.5.bb          |    2 --
 10 files changed, 23 insertions(+), 24 deletions(-)

-- 
1.7.10




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

end of thread, other threads:[~2012-11-10 11:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-09 10:09 [PATCH 0/2] Consolidate _FOR_BUILD variables Ross Burton
2012-11-09 10:09 ` [PATCH 1/2] autotools: set _FOR_BUILD variables here Ross Burton
2012-11-09 10:09 ` [PATCH 2/2] meta: remove redundant _FOR_BUILD variables Ross Burton
2012-11-09 22:32   ` Otavio Salvador
2012-11-09 22:57     ` Richard Purdie
2012-11-09 23:23       ` Otavio Salvador
2012-11-10 10:05         ` Richard Purdie
2012-11-10 11:11         ` Phil Blundell
2012-11-10 11:20           ` Tomas Frydrych

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox