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.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
if [ -f "$BUILDDIR/conf/templateconf.cfg" ]; then
TEMPLATECONF=$(cat "$BUILDDIR/conf/templateconf.cfg")
+ # The following two are no longer valid; unsetting them will automatically get them replaced
+ # with correct ones.
+ if [ $TEMPLATECONF = "meta/conf" -o $TEMPLATECONF = "meta-poky/conf" ]; then
+ unset TEMPLATECONF
+ rm $BUILDDIR/conf/templateconf.cfg
+ fi
fi
. "$OEROOT"/.templateconf