]> code.ossystems Code Review - openembedded-core.git/commit
populate_sdk: enable basic multilib support
authorMark Hatle <mark.hatle@windriver.com>
Fri, 22 Jun 2012 23:44:06 +0000 (18:44 -0500)
committerSaul Wold <sgw@linux.intel.com>
Tue, 3 Jul 2012 07:05:30 +0000 (00:05 -0700)
commit42545ffbb37f2646a2a8c20999c21d3300e24f59
tree2f3ecc3827a73ce627d048e4527e353174672855
parent5fa9f980248e7813ce74f48a29c4b7d94e308cf9
populate_sdk: enable basic multilib support

In order to enable basic multilib support for the export of an SDK
image, a number of minor changes had to be made:

The value of MULTIMACH_TARGET_SYS needs to be variable.  This way we
can define the value to the appropriate multilib.  (Also in some cases
the default PACKAGE_ARCH is set to MACHINE_ARCH which is incorrect for
the SDK.)  Add a companion REAL_MULTIMACH_TARGET_SYS, based on code
from meta-environment, to allow for this.

We have to convert the do_populate_sdk into a python call, and then
break up the previous items into three parts.
  * Image construction
  * Setup of environment files
  * Generation of the tarball

Then we can iterate over the multilibs to populate the environment files.

Finally, matching changes were needed in the toolchain-scripts file.  And
what I presume is an optimization of immediate evaluation for
TOOLCHAIN_CONFIGSITE_NOCACHE and ..._SYSROOTCACHE needed to be done at
runtime, otherwise the wrong values may be used.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/classes/populate_sdk_base.bbclass
meta/classes/toolchain-scripts.bbclass