generic-poky/meta/recipes-core
Patrick Ohly 11aa390288 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.

(From OE-Core rev: 23a12d87a6e82f80f4ccc1a01c707faa89ff7abd)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-22 11:35:22 +00:00
..
base-files base-files: do not write the current date into /etc/issue and /etc/issue.net 2017-03-11 16:09:14 +00:00
base-passwd Switch to Recipe Specific Sysroots 2017-01-23 12:05:17 +00:00
bsd-headers bsd-headers: set SUMMARY instead of DESCRIPTION 2016-05-30 15:58:10 +01:00
busybox busybox: ignore the largefile distro feature ( always enable LFS ) 2017-03-22 11:35:20 +00:00
console-tools console-tools: fix string formatting issue 2017-02-15 20:06:42 -08:00
coreutils recipes: Move out stale GPLv2 versions to a seperate layer 2017-03-07 20:05:31 +00:00
dbus meta: start to ignore the largefile distro feature 2017-03-08 11:52:56 +00:00
dbus-wait recipes: Add missing pkgconfig class inherits 2014-06-03 16:49:19 +01:00
dropbear dropbear: drop support for DSA host keys in dropbear init script 2017-03-10 14:50:10 +00:00
expat gzip/pigz/expat/image: Simplify gzip-native/pigz-native 2017-01-28 23:32:16 +00:00
fts fts: Reduce duplication in MIPS variants. 2016-11-15 15:19:52 +00:00
gettext gettext: split recipe's description 2017-03-17 16:53:06 +00:00
glib-2.0 glib-2.0: improve determinism for GIO ptests 2017-03-11 16:09:14 +00:00
glib-networking glib-networking: remove intltool dependency 2016-11-23 11:10:11 +00:00
glibc glibc: Ensure ldconfig is packaged into glibc 2017-03-22 11:35:20 +00:00
ifupdown ifupdown: upgrade to 0.8.16 2017-01-05 13:54:06 +00:00
images build-appliance-image: ensure pod2man present in BA 2017-03-16 22:11:32 +00:00
init-ifupdown meta: set proper S value 2015-01-23 11:36:27 +00:00
initrdscripts gummiboot: Remove/change gummiboot references with systemd-boot 2017-01-09 13:39:11 +00:00
initscripts initscripts/sysfs.sh: mount configfs if present 2017-03-01 23:27:08 +00:00
kbd kbd: update to 2.0.4 2017-03-01 23:27:09 +00:00
libcgroup libcgroup: Add dependency on fts when building on musl 2016-01-24 09:40:26 +00:00
libxml recipes: Make use of the new bb.utils.filter() function 2017-03-01 11:17:45 +00:00
meta meta-estsdk-toolchain: use WORKDIR instead of D to hold locked-sigs 2017-03-02 14:21:12 +00:00
musl musl: Update to latest 2017-03-17 16:53:05 +00:00
ncurses ncurses: 6.0+20160625 -> 6.0+20161126 2017-02-23 12:49:52 -08:00
netbase netbase: upgrade to version 5.4 2017-01-19 22:47:21 +00:00
os-release meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
ovmf ovmf: fix toolchain selection 2017-03-22 11:35:22 +00:00
packagegroups nativesdk-packagegroup-sdk-host.bb: add cmake 2017-03-17 16:53:06 +00:00
psplash psplash: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:50 +00:00
readline readline: Remove unused patch 2017-03-16 22:11:32 +00:00
sysfsutils package_regex.inc: split sourceforge related entries to their own recipes 2015-12-08 10:20:52 +00:00
systemd systemd: Do not add libnss_* to systemd package 2017-03-22 11:35:20 +00:00
sysvinit sysvinit-inittab: fix getty device removal 2016-12-16 10:23:23 +00:00
udev eudev: Upgrade to 3.2.1 2017-02-23 12:49:51 -08:00
update-rc.d update-rc.d: Correct trivial typo in DESCRIPTION line. 2016-08-01 11:47:11 +01:00
util-linux util-linux,shadow: Make 'nologin' alternative command 2017-03-22 11:35:20 +00:00
volatile-binds meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
zlib zlib: Upgrade 1.2.8 -> 1.2.11 2017-03-08 11:52:57 +00:00