diff options
author | Peter Marko <peter.marko@siemens.com> | 2023-03-23 13:25:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-25 09:39:28 +0000 |
commit | b553853fc44d4380267c80396c9e4f56fe026cd8 (patch) | |
tree | e792d175f3da4fd5c4333e6af1972666e2c25d3e /meta/recipes-devtools/gcc | |
parent | 37771ef5bd71545ee68197ac237fa17d58327f18 (diff) | |
download | poky-b553853fc44d4380267c80396c9e4f56fe026cd8.tar.gz |
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
(From OE-Core rev: 42661a59cda164b2d236ffc35b4d8cf43312b677)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-shared-source.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-shared-source.inc b/meta/recipes-devtools/gcc/gcc-shared-source.inc index cd2e341099..03f520b093 100644 --- a/meta/recipes-devtools/gcc/gcc-shared-source.inc +++ b/meta/recipes-devtools/gcc/gcc-shared-source.inc | |||
@@ -16,6 +16,6 @@ do_deploy_source_date_epoch () { | |||
16 | sde_file=${SDE_FILE} | 16 | sde_file=${SDE_FILE} |
17 | sde_file=${sde_file#${WORKDIR}/} | 17 | sde_file=${sde_file#${WORKDIR}/} |
18 | mkdir -p ${SDE_DEPLOYDIR} $(dirname ${SDE_FILE}) | 18 | mkdir -p ${SDE_DEPLOYDIR} $(dirname ${SDE_FILE}) |
19 | cp -p ${S}/../$sde_file ${SDE_DEPLOYDIR} | 19 | cp -p $(dirname ${S})/$sde_file ${SDE_DEPLOYDIR} |
20 | cp -p ${S}/../$sde_file ${SDE_FILE} | 20 | cp -p $(dirname ${S})/$sde_file ${SDE_FILE} |
21 | } | 21 | } |