mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 18:53:13 +01:00
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>
64 lines
1.7 KiB
Plaintext
64 lines
1.7 KiB
Plaintext
# We have a conf and classes directory, add to BBPATH
|
|
BBPATH .= ":${LAYERDIR}"
|
|
# We have recipes-* directories, add to BBFILES
|
|
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb"
|
|
|
|
BBFILE_COLLECTIONS += "core"
|
|
BBFILE_PATTERN_core = "^${LAYERDIR}/"
|
|
BBFILE_PRIORITY_core = "5"
|
|
|
|
# This should only be incremented on significant changes that will
|
|
# cause compatibility issues with other layers
|
|
LAYERVERSION_core = "10"
|
|
|
|
BBLAYERS_LAYERINDEX_NAME_core = "openembedded-core"
|
|
|
|
# Set a variable to get to the top of the metadata location
|
|
COREBASE = '${@os.path.normpath("${LAYERDIR}/../")}'
|
|
|
|
# opkg-utils is for update-alternatives :(
|
|
SIGGEN_EXCLUDERECIPES_ABISAFE += " \
|
|
sysvinit-inittab \
|
|
shadow-securetty \
|
|
opkg-arch-config \
|
|
netbase \
|
|
init-ifupdown \
|
|
connman-conf \
|
|
formfactor \
|
|
xserver-xf86-config \
|
|
pointercal-xinput \
|
|
base-files \
|
|
keymaps \
|
|
udev-extraconf \
|
|
packagegroup-x11-xserver \
|
|
systemd-serialgetty \
|
|
initscripts \
|
|
shadow \
|
|
shadow-sysroot \
|
|
base-passwd \
|
|
opkg-utils \
|
|
gstreamer1.0-meta-base \
|
|
"
|
|
|
|
SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
|
|
gcc-cross-${TARGET_ARCH}->virtual/${TARGET_PREFIX}libc-for-gcc \
|
|
gcc-cross-${TARGET_ARCH}->linux-libc-headers \
|
|
ppp-dialin->ppp \
|
|
resolvconf->bash \
|
|
docbook-xsl-stylesheets->perl \
|
|
ca-certificates->openssl \
|
|
initramfs-framework->${VIRTUAL-RUNTIME_base-utils} \
|
|
initramfs-framework->systemd \
|
|
initramfs-framework->eudev \
|
|
liberation-fonts->fontconfig \
|
|
cantarell-fonts->fontconfig \
|
|
gnome-icon-theme->librsvg \
|
|
font-alias->font-util \
|
|
weston-init->weston \
|
|
weston-init->kbd \
|
|
oprofile->virtual/kernel \
|
|
"
|
|
|
|
# We need to keep bitbake tools in PATH
|
|
PATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}:${TMPDIR}/hosttools"
|