Skip to contentSkip to conversation

toaster: run bitbake server with --read option

PATCH In review Ed Bartosh 3 participants 3 messages Jan 20, 2016 – Jan 22, 2016

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 toaster: run bitbake server with --read option

Toaster script run bitbake with --postread conf/toaster.conf. It turned out that variables set this way don't influence the build. Changing --postread to --read makes bitbake to read variables earlier and should fix this issue.

[YOCTO #8781]

---
 bitbake/bin/toaster | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/bin/toaster +1 -1
index e5041cb..72eae64 100755
@@ -108,7 +108,7 @@ stop_system()
 
 start_bitbake() {
     unset BBSERVER
-    bitbake --postread conf/toaster.conf --server-only -t xmlrpc -B 0.0.0.0:0
+    bitbake --read conf/toaster.conf --server-only -t xmlrpc -B 0.0.0.0:0
     if [ $? -ne 0 ]; then
         echo "Bitbake server start failed"
         return 1
Signature · 1 line
2.1.4
#1 lore raw
Quoted 6 lines · On 20/01/2016 11:24, "[email protected] on behalf of Ed…

Toaster script run bitbake with --postread conf/toaster.conf. It turned out that variables set this way don't influence the build. Changing --postread to --read makes bitbake to read variables earlier and should fix this issue.

[YOCTO #8781]

I haven't tried an lsb build, but this seems to fix the issue with building for machines not provided by the poky layers.

Thanks!

Belén

Quoted 28 lines

---
bitbake/bin/toaster | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/bin/toaster +0 -1
index e5041cb..72eae64 100755
@@ -108,7 +108,7 @@ stop_system()
 
 start_bitbake() {
    unset BBSERVER
-    bitbake --postread conf/toaster.conf --server-only -t xmlrpc -B

0.0.0.0:0
+ bitbake --read conf/toaster.conf --server-only -t xmlrpc -B 0.0.0.0:0
if [ $? -ne 0 ]; then
echo "Bitbake server start failed"
return 1

Signature · 7 lines
2.1.4

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

On 20 January 2016 at 13:56, Barros Pena, Belen <[email protected]

Quoted 9 lines
Quoted 6 lines · wrote:

Toaster script run bitbake with --postread conf/toaster.conf. It turned out that variables set this way don't influence the build. Changing --postread to --read makes bitbake to read variables earlier and should fix this issue.

[YOCTO #8781]

Sent to bitbake-devel and added to toaster-next.

Elliot

Quoted 44 lines

I haven't tried an lsb build, but this seems to fix the issue with building for machines not provided by the poky layers.

Thanks!

Belén

Quoted 15 lines

---
bitbake/bin/toaster | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/bin/toaster +0 -1
index e5041cb..72eae64 100755
@@ -108,7 +108,7 @@ stop_system()
 
 start_bitbake() {
    unset BBSERVER
-    bitbake --postread conf/toaster.conf --server-only -t xmlrpc -B
Quoted 2 lines

0.0.0.0:0
+ bitbake --read conf/toaster.conf --server-only -t xmlrpc -B

0.0.0.0:0

Quoted 11 lines

if [ $? -ne 0 ]; then
echo "Bitbake server start failed"
return 1
--
2.1.4

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

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

Signature · 3 lines
Elliot Smith
Software Engineer
Intel Open Source Technology Centre