]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake.conf: add TMPDIR to GIT_CEILING_DIRECTORIES
authorRoss Burton <ross.burton@arm.com>
Wed, 8 Oct 2025 14:02:24 +0000 (15:02 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Oct 2025 09:27:02 +0000 (10:27 +0100)
commitf42f0185bd00e68ecc86a930487f21fc86214cfa
treedebe3477918a5a4025680dc7b8a982db32b26c53
parentba8a64935f43bfda92a11758b13590bbb3632ff2
bitbake.conf: add TMPDIR to GIT_CEILING_DIRECTORIES

We export GIT_CEILING_DIRECTORIES=WORKDIR to ensure that git calls
inside the builds don't find oe-core when they're meant to be looking
for the git repository of the source code.

However, this breaks for recipes that use work-shared (such as llvm), as
their working directory is outside of WORKDIR.

Solve this by adding TMPDIR to the list as a final catch, but keeping
WORKDIR first so that git will stop sooner in the general case.

This solves reproduciblity problems in LLVM, where for example lld's
version string would contain the URL and commit hash of the poky repo
being built.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf