Skip to contentSkip to conversation

toaster: change TOASTER_CONF to meta-poky

PATCH In review Belen Barros Pena 4 participants 4 messages Feb 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: change TOASTER_CONF to meta-poky

From: Belen Barros Pena <[email protected]>

Patch 9d5483c37523ff3d334c98cafb848282b54962cd renames the layer within the meta-yocto repository to meta-poky. This patch changes the value of TOASTER_CONF in the toaster set up script to get Toaster to import the meta-poky/conf/toasterconf.json file.

---
 bitbake/bin/toaster | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/bin/toaster +1 -1
index 72eae64..4e709ab 100755
@@ -248,7 +248,7 @@ fi
 # in the local layers that currently prevent using an arbitrary
 # toasterconf.json
 if [ "$TOASTER_CONF" = "" ]; then
-    TOASTER_CONF="$(dirname $TOASTER)/../../meta-yocto/conf/toasterconf.json"
+    TOASTER_CONF="$(dirname $TOASTER)/../../meta-poky/conf/toasterconf.json"
     export TOASTER_CONF=$(python -c "import os; print os.path.realpath('$TOASTER_CONF')")
 fi
 if [ ! -f $TOASTER_CONF ]; then
Signature · 1 line
2.5.4 (Apple Git-61)
#1 lore raw
Quoted 28 lines · Belen Barros Pena

From: Belen Barros Pena <[email protected]>

Patch 9d5483c37523ff3d334c98cafb848282b54962cd renames the layer within
the meta-yocto repository to meta-poky. This patch changes the value of
TOASTER_CONF in the toaster set up script to get Toaster to import the
meta-poky/conf/toasterconf.json file.

---
 bitbake/bin/toaster | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/bin/toaster +1 -3
index 72eae64..4e709ab 100755
@@ -248,7 +248,7 @@ fi
 # in the local layers that currently prevent using an arbitrary
 # toasterconf.json
 if [ "$TOASTER_CONF" = "" ]; then
-    TOASTER_CONF="$(dirname $TOASTER)/../../meta
-yocto/conf/toasterconf.json"
+    TOASTER_CONF="$(dirname $TOASTER)/../../meta
-poky/conf/toasterconf.json"
     export TOASTER_CONF=$(python -c "import os; print
Quoted 3 lines

os.path.realpath('$TOASTER_CONF')")
fi
if [ ! -f $TOASTER_CONF ]; then

Do we still need this or can this be removed given the TEMPLATECONF code above it in this file? bitbake really shouldn't have OE/Yocto knowledge ideally.

Cheers,

Richard

#2 lore raw
Quoted 27 lines · On 29/02/2016 15:59, "[email protected] on behalf of Richard…
Quoted 26 lines · Belen Barros Pena

From: Belen Barros Pena <[email protected]>

Patch 9d5483c37523ff3d334c98cafb848282b54962cd renames the layer within
the meta-yocto repository to meta-poky. This patch changes the value of
TOASTER_CONF in the toaster set up script to get Toaster to import the
meta-poky/conf/toasterconf.json file.

---
 bitbake/bin/toaster | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/bin/toaster +1 -2
index 72eae64..4e709ab 100755
@@ -248,7 +248,7 @@ fi
 # in the local layers that currently prevent using an arbitrary
 # toasterconf.json
 if [ "$TOASTER_CONF" = "" ]; then
-    TOASTER_CONF="$(dirname $TOASTER)/../../meta
-yocto/conf/toasterconf.json"
+    TOASTER_CONF="$(dirname $TOASTER)/../../meta
Quoted 8 lines
Quoted 5 lines
bitbake/bin/toaster +0 -1
-poky/conf/toasterconf.json"
     export TOASTER_CONF=$(python -c "import os; print

os.path.realpath('$TOASTER_CONF')")
fi
if [ ! -f $TOASTER_CONF ]; then

Do we still need this or can this be removed given the TEMPLATECONF code above it in this file?

No idea. But fwiw, I commented out lines 250 to 258 of the script, and started Toaster from scratch. Everything seemed to work the same.

Quoted 12 lines

bitbake really shouldn't have OE/Yocto
knowledge ideally.

Cheers,

Richard

Signature · 4 lines
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster
#3 lore raw

I pushed a patch to clean up bin/toaster that fixes this among a few other issues.
-b

Quoted 63 lines · Belen
Quoted 27 lines · On 29/02/2016 15:59, "[email protected] on behalf of Richard…
Quoted 26 lines · Belen Barros Pena

From: Belen Barros Pena <[email protected]>

Patch 9d5483c37523ff3d334c98cafb848282b54962cd renames the layer within
the meta-yocto repository to meta-poky. This patch changes the value of
TOASTER_CONF in the toaster set up script to get Toaster to import the
meta-poky/conf/toasterconf.json file.

---
 bitbake/bin/toaster | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/bin/toaster +1 -2
index 72eae64..4e709ab 100755
@@ -248,7 +248,7 @@ fi
 # in the local layers that currently prevent using an arbitrary
 # toasterconf.json
 if [ "$TOASTER_CONF" = "" ]; then
-    TOASTER_CONF="$(dirname $TOASTER)/../../meta
-yocto/conf/toasterconf.json"
+    TOASTER_CONF="$(dirname $TOASTER)/../../meta
Quoted 8 lines
Quoted 5 lines
bitbake/bin/toaster +0 -1
-poky/conf/toasterconf.json"
     export TOASTER_CONF=$(python -c "import os; print

os.path.realpath('$TOASTER_CONF')")
fi
if [ ! -f $TOASTER_CONF ]; then

Do we still need this or can this be removed given the TEMPLATECONF code above it in this file?

No idea. But fwiw, I commented out lines 250 to 258 of the script, and started Toaster from scratch. Everything seemed to work the same.

Quoted 5 lines

bitbake really shouldn't have OE/Yocto
knowledge ideally.

Cheers,

Quoted 7 lines

Richard

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster