[bitbake-devel] [PATCH v2 0/1][resend] Add a syntax to unset variable from bitbake configuration file

Jérémy Rosen jeremy.rosen at smile.fr
Tue Sep 6 10:44:11 UTC 2016


Any news ?


On 23/08/2016 11:44, Jérémy Rosen wrote:
> While working on a Yocto project I had a need to reactivate a task that was
> disabled (do_fetch[noexec]="1") Currently, bitbake does not check the value
> of the noexec flag but only if the flag is set. The only way to unset a flag
> is to use an inline python syntax like the one below
>
> python () {
>     d.delVarFlag("do_fetch","noexec")
> }
>
> Using inline python to do something as simple as clearing a flag sounded too
> complicated to me so I added a new keyword "unset" to bitbake with the
> following syntax :
>
> unset VAR
>
> will call d.delVar("VAR")
>
> unset VAR[flag]
>
> will call d.delVarFlag("VAR","flag")
>
> Documentation has been updated accordingly
>
> ---
> v2 : fix some wording in documentation
>       add unit test
>
> Jérémy Rosen (1):
>    add a syntax to clear variable
>
>   bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml | 17 ++++-
>   bitbake/lib/bb/parse/ast.py                                      | 33 +++++++-
>   bitbake/lib/bb/parse/parse_py/ConfHandler.py                     | 12 +++-
>   bitbake/lib/bb/tests/parse.py                                    | 17 ++++-
>   4 files changed, 79 insertions(+), 0 deletions(-)
>




More information about the bitbake-devel mailing list