summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-09-01 16:23:28 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-02 15:58:26 +0100
commitbfa02f71d86880781afb9e985b823c3add459162 (patch)
tree787df7a4641625b16e6c3ad1fb42e16cedf35755 /scripts
parent1d4ac06c850b37d129a522c6909f7babfcdbd9d9 (diff)
downloadpoky-bfa02f71d86880781afb9e985b823c3add459162.tar.gz
scripts/oe-setup-builddir: migrate build/conf/templateconf.cfg to new template locations
This is done only for default oe-core/poky templates; for anything else the locations themselves need to be migrated first, and there is no way to tell where they would be. (From OE-Core rev: 9da0dd350a451676e3d4a1f09f90ec0234047ab7) Signed-off-by: Alexander Kanavin <alex@linutronix.de> 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-builddir6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index bf832ee0ca..32bc6580eb 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -40,6 +40,12 @@ cd "$BUILDDIR"
40 40
41if [ -f "$BUILDDIR/conf/templateconf.cfg" ]; then 41if [ -f "$BUILDDIR/conf/templateconf.cfg" ]; then
42 TEMPLATECONF=$(cat "$BUILDDIR/conf/templateconf.cfg") 42 TEMPLATECONF=$(cat "$BUILDDIR/conf/templateconf.cfg")
43 # The following two are no longer valid; unsetting them will automatically get them replaced
44 # with correct ones.
45 if [ $TEMPLATECONF = "meta/conf" -o $TEMPLATECONF = "meta-poky/conf" ]; then
46 unset TEMPLATECONF
47 rm $BUILDDIR/conf/templateconf.cfg
48 fi
43fi 49fi
44 50
45. "$OEROOT"/.templateconf 51. "$OEROOT"/.templateconf