]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
base/bitbake.conf: Filter contents of PATH to only allow whitelisted tools
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Mar 2017 00:14:38 +0000 (00:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Mar 2017 16:09:14 +0000 (16:09 +0000)
commit94790a8254d63d63759ca3598b42f3f67bc97d02
treeb3df3f28c12a6e9270a6763affabc14052c594fd
parent6df0da0aa1aa8f5f3bbb16bc3af03d14007f2791
base/bitbake.conf: Filter contents of PATH to only allow whitelisted tools

We currently have a determinism problem in that the host tools present
in PATH can influence the build. In particular, the presence of pkg-config
on the build host can mask missing pkgconfig class dependencies.

This adds in a new HOSTTOOLS variable and then uses it to set up a directory
of symlinks to the whitelisted host tools. This directory is placed as PATH
instead of the usual /usr/bin:/bin and so on.

This should improve determinism of builds and avoid the issues which have
been particularly obvious since the introduction of recipe specific sysroots.

If users find there is a tool missing, they can extend HOSTTOOLS from a global
class or global conf file.

Right now the settings should be enough to build everything in OE-Core.

(From OE-Core rev: fa764a403da34bb0ca9fa3767a9e9dba8d685965)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass
meta/conf/bitbake.conf
meta/conf/layer.conf