summaryrefslogtreecommitdiffstats
path: root/scripts/oe-setup-builddir
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2022-09-06 18:43:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-08 14:59:39 +0100
commit821cf70f093663b29eb9e8e25b3e148e28dc1421 (patch)
tree70085140ae63367e244b02a0d5fb496e38d54c35 /scripts/oe-setup-builddir
parent5db679c9173df1435a4437a6ac3eb24874309974 (diff)
downloadpoky-821cf70f093663b29eb9e8e25b3e148e28dc1421.tar.gz
oe-setup-builddir: Keep templateconf.cfg relative if $TEMPLATECONF is
Before commit 7b96dc80 (scripts/oe-setup-builddir: write to conf/templateconf.cfg after the build is set up), the path written to templateconf.cfg was relative if $TEMPLATECONF was relative, but afterwards it became absolute. Restore the original behavior of saving the relative path to templateconf.cfg. (From OE-Core rev: 49e75009780a09873dc3987ae1c40f2ac95bc667) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-setup-builddir')
-rwxr-xr-xscripts/oe-setup-builddir7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index b06880c9cb..201cea30bf 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -46,7 +46,10 @@ fi
46 46
47. "$OEROOT/.templateconf" 47. "$OEROOT/.templateconf"
48 48
49# 49# Keep the original TEMPLATECONF before possibly prefixing it with $OEROOT below.
50ORG_TEMPLATECONF=$TEMPLATECONF
51
52#
50# $TEMPLATECONF can point to a directory for the template local.conf & bblayers.conf 53# $TEMPLATECONF can point to a directory for the template local.conf & bblayers.conf
51# 54#
52if [ -n "$TEMPLATECONF" ]; then 55if [ -n "$TEMPLATECONF" ]; then
@@ -131,5 +134,5 @@ fi
131unset OECORENOTESCONF 134unset OECORENOTESCONF
132 135
133if [ ! -f "$BUILDDIR/conf/templateconf.cfg" ]; then 136if [ ! -f "$BUILDDIR/conf/templateconf.cfg" ]; then
134 echo "$TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg" 137 echo "$ORG_TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg"
135fi 138fi