summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-09-02 14:02:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-03 08:51:57 +0100
commit57536f640ad3f7bf4f4a97c27d478f1b296596a3 (patch)
treeb2c18dc0d6beb8fab2960bdf52d1223bab2c51eb /scripts
parent7ef1feefa4fcc68572d40442807cbdad396015d6 (diff)
downloadpoky-57536f640ad3f7bf4f4a97c27d478f1b296596a3.tar.gz
scripts/oe-setup-builddir: write to conf/templateconf.cfg after the build is set up
This was done before any of the sanity checks or actual setup, which resulted in templateconf.cfg always getting written out, whether it would be valid or not, and the user becoming stuck with it. (From OE-Core rev: 7b96dc80298af6f669c885056a80a48bdd50e547) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-setup-builddir8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index 32bc6580eb..6493e46b2b 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -50,10 +50,6 @@ fi
50 50
51. "$OEROOT"/.templateconf 51. "$OEROOT"/.templateconf
52 52
53if [ ! -f "$BUILDDIR/conf/templateconf.cfg" ]; then
54 echo "$TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg"
55fi
56
57# 53#
58# $TEMPLATECONF can point to a directory for the template local.conf & bblayers.conf 54# $TEMPLATECONF can point to a directory for the template local.conf & bblayers.conf
59# 55#
@@ -140,3 +136,7 @@ if [ -z "$OECORENOTESCONF" ]; then
140fi 136fi
141[ ! -r "$OECORENOTESCONF" ] || cat "$OECORENOTESCONF" 137[ ! -r "$OECORENOTESCONF" ] || cat "$OECORENOTESCONF"
142unset OECORENOTESCONF 138unset OECORENOTESCONF
139
140if [ ! -f "$BUILDDIR/conf/templateconf.cfg" ]; then
141 echo "$TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg"
142fi