summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2022-09-06 18:43:35 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-08 14:59:39 +0100
commit16adb2be340063b796b4cff1957cd5ddf31b4f20 (patch)
tree6af7a1673e0626b04210385daf8206ec5c0184da /scripts
parent821cf70f093663b29eb9e8e25b3e148e28dc1421 (diff)
downloadpoky-16adb2be340063b796b4cff1957cd5ddf31b4f20.tar.gz
oe-setup-builddir: Always update templateconf.cfg
The intent of the templateconf.cfg file is to cache the value of $TEMPLATECONF. To do this, it needs to be updated in case TEMPLATECONF is manually specified. Before, the following commands: TEMPLATECONF=foo . oe-init-build-env TEMPLATECONF=bar . oe-init-build-env . oe-init-build-env would cause the templates in foo to be used for the last source of oe-init-build-env, while afterwards, bar is used as expected. (From OE-Core rev: 37c122dfdac03a98bf2bf8c8f7676ec25136d402) 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')
-rwxr-xr-xscripts/oe-setup-builddir4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index 201cea30bf..72113c37b8 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -133,6 +133,4 @@ fi
133[ ! -r "$OECORENOTESCONF" ] || cat "$OECORENOTESCONF" 133[ ! -r "$OECORENOTESCONF" ] || cat "$OECORENOTESCONF"
134unset OECORENOTESCONF 134unset OECORENOTESCONF
135 135
136if [ ! -f "$BUILDDIR/conf/templateconf.cfg" ]; then 136echo "$ORG_TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg"
137 echo "$ORG_TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg"
138fi