[OE-core] Bitbake in server mode

Richard Purdie richard.purdie at linuxfoundation.org
Wed Aug 21 14:26:25 UTC 2013


I've just realised that we have some new functionality that has sneaked
in but most people are unaware of. You can now run bitbake as a server
in the background and then just connect the knotty UI to it with
commands. The usage is:

bitbake --server-only -t xmlrpc -B localhost:1234

which starts a server on localhost port 1234 and then you can run
commands with:

BBSERVER=localhost:1234 bitbake <somecommand>

and 

BBSERVER=localhost:1234 bitbake -m

to shut it down.

Known issues:

a) Parsing is slower. Probably due to all the debug messages going over
the IPC/xmlrpc. UI event filtering should fix it.
b) Something is causing a cache reparse initially. Need to figure out
what. Maybe the BBSERVER variable itself?

This is still development so I'd not recommend everyone use this for
production just yet but it gives some nice insight into what the future
holds!

We should be able to make bitbake in this mode much more responsive to
commands since there is no cache overhead.

Cheers,

Richard




More information about the Openembedded-core mailing list