diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2017-03-21 09:56:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-21 22:43:04 +0000 |
commit | 23a12d87a6e82f80f4ccc1a01c707faa89ff7abd (patch) | |
tree | 508b231a682c36b49ef1d89779bb4c7492e31a98 /meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | |
parent | aa30853693a8b6092e1ea9785d64267858454d17 (diff) | |
download | openembedded-core-23a12d87a6e82f80f4ccc1a01c707faa89ff7abd.tar.gz openembedded-core-23a12d87a6e82f80f4ccc1a01c707faa89ff7abd.tar.bz2 openembedded-core-23a12d87a6e82f80f4ccc1a01c707faa89ff7abd.zip |
ovmf: fix toolchain selection
For the native tools, a static patch inserted gcc/g++/ld/ar while later
adding BUILD_LDFLAGS and BUILD_CFLAGS with sed. Now it's all done with sed,
which has the advantage that it uses the actual compile variables. However,
in practice those are the same.
More importantly, picking the build tools for the target was
broken. ovmf-native tried to insert TARGET_PREFIX into the tools
definition file, but that variable is empty in a native recipe. As a
result, "gcc" was used instead of "${HOST_PREFIX}gcc", leading to an
undesirable dependency on the host compiler and potentially
(probably?!) causing some of the build issues that were seen for ovmf.
The new approach is to override the tool selection in ovmf-native so
that the HOST_PREFIX env variable is used, which then gets exported
during do_compile for the target.
While at it, Python code that gets appened to do_patch only to call
shell functions gets replaced with the do_patch[postfuncs] mechanism.
Incremental builds now always use the tools definition from the
current ovmf-native; previously, only the initial build copied the
template file.
Probably the entire split into ovmf-native and ovmf could be
removed. This merely hasn't been attempted yet.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb')
0 files changed, 0 insertions, 0 deletions