]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
gcc-shared-source: do not use ${S}/.. in deploy_source_date_epoch
authorPeter Marko <peter.marko@siemens.com>
Thu, 23 Mar 2023 12:25:16 +0000 (13:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 25 Mar 2023 09:39:26 +0000 (09:39 +0000)
commit42661a59cda164b2d236ffc35b4d8cf43312b677
treeccba6c88abe354c68b411e87dd4bb24eb14b5976
parent6a7c17065aa1b107a8ff43de7c9097246b1316be
gcc-shared-source: do not use ${S}/.. in deploy_source_date_epoch

This function is referencing '${S}/..'.
It uses ${S} only as good known directory path to start
traversing from, and it does not need it to exist or be populated.
If ${S} does not exist yet, the function will fail because
it cannot evaluate path .. from non-existing directory.

Reproducer (verified in master and kirkstone):
  bitbake gcc -c deploy_source_date_epoch
  bitbake gcc -c cleansstate
  rm -rf build/tmp
  bitbake gcc -c deploy_source_date_epoch

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/gcc/gcc-shared-source.inc