[OE-core] Custom progress handlers

Otavio Salvador otavio.salvador at ossystems.com.br
Sat Apr 14 21:05:12 UTC 2018


On Sat, Apr 14, 2018 at 11:56 AM, Chris Laplante via Openembedded-core
<openembedded-core at lists.openembedded.org> wrote:
> I have implemented a simple custom progress handler in
> bitbake/lib/bb/progress.py. It’s designed to handle bar-style progress. To
> use it for my shell tasks, I have modified “exec_func_shell” in
> bitbake/lib/bb/build.py. It’s implemented as a new value for the “progress”
> varflag.
>
> Is there a better, more extensible way to add a custom progress handler that
> doesn’t require modifying progress.py and build.py? It would be nice to be
> able to specify the name of the progress handler class to use (e.g. via a
> [progress-class] varflag) and then have build.py dynamically instantiate it.
> Is that possible? If so, would OE be interested in a patch to implement it?

I see no problem in adding it; I am curious about your custom handler
as well :-)

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list