All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/oe-setup-builddir: migrate build/conf/templateconf.cfg to new template locations
@ 2022-09-01 14:23 Alexander Kanavin
  2022-09-02  0:12 ` [OE-core] " Peter Kjellerstedt
  0 siblings, 1 reply; 11+ messages in thread
From: Alexander Kanavin @ 2022-09-01 14:23 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexander Kanavin

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>
---
 scripts/oe-setup-builddir | 6 ++++++
 1 file changed, 6 insertions(+)

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"
 
 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
-- 
2.30.2



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-09-02 16:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-01 14:23 [PATCH] scripts/oe-setup-builddir: migrate build/conf/templateconf.cfg to new template locations Alexander Kanavin
2022-09-02  0:12 ` [OE-core] " Peter Kjellerstedt
2022-09-02  4:31   ` Alexander Kanavin
2022-09-02 14:47     ` Peter Kjellerstedt
2022-09-02 15:08       ` Alexander Kanavin
2022-09-02 15:41         ` Peter Kjellerstedt
2022-09-02 16:50           ` Alexander Kanavin
     [not found]   ` <1710F0E3F6A43399.12033@lists.openembedded.org>
2022-09-02  7:16     ` Alexander Kanavin
2022-09-02  7:37       ` Richard Purdie
2022-09-02  7:41         ` Alexander Kanavin
     [not found]         ` <1710FB3AA9843A6F.13805@lists.openembedded.org>
2022-09-02 10:57           ` Alexander Kanavin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.