All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Add a syntax to clear variables and flags from a conf file
@ 2016-07-21 10:55 Jérémy Rosen
  2016-07-21 10:55 ` [PATCH 1/1] add a syntax to clear variable Jérémy Rosen
  0 siblings, 1 reply; 8+ messages in thread
From: Jérémy Rosen @ 2016-07-21 10:55 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Jérémy Rosen

From: Jérémy Rosen <jeremy.rosen@openwide.fr>

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


Jérémy Rosen (1):
  add a syntax to clear variable

 .../bitbake-user-manual-metadata.xml               | 17 +++++++++++
 bitbake/lib/bb/parse/ast.py                        | 33 ++++++++++++++++++++++
 bitbake/lib/bb/parse/parse_py/ConfHandler.py       | 12 ++++++++
 3 files changed, 62 insertions(+)

-- 
2.8.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-16 13:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-21 10:55 [PATCH 0/1] Add a syntax to clear variables and flags from a conf file Jérémy Rosen
2016-07-21 10:55 ` [PATCH 1/1] add a syntax to clear variable Jérémy Rosen
2016-08-15 14:44   ` Peter Kjellerstedt
2016-08-15 14:47     ` Christopher Larson
2016-08-16 10:38       ` Jérémy Rosen
2016-08-16 13:22         ` Richard Purdie
2016-08-15 14:58     ` Ulf.Magnusson
2016-08-16 10:42       ` Jérémy Rosen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.