generic-poky/bitbake/lib
Peter Kjellerstedt 3004f57a25 bitbake: lib/bb/utils: Add filter()
The bb.utils.filter() function can be used to filter a variable
containing whitespace separated words based on another set of words.
It has been modeled after the bb.utils.contains_any() function.

A typical example of how it can be used is to simplify constructs for
PACKAGECONFIG that depend on DISTRO_FEATURES:

-PACKAGECONFIG ?= "\
-    ${@bb.utils.contains('DISTRO_FEATURES', 'acl', 'acl', '', d)} \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
-"
+PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)}"

(Bitbake rev: 03ae490366d2046f5b5c185fe4ec2adf1b0a902e)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-01 11:16:07 +00:00
..
bb bitbake: lib/bb/utils: Add filter() 2017-03-01 11:16:07 +00:00
bblayers bitbake: bitbake-layers: show-appends: add optional argument to limit package list 2017-01-23 22:38:49 +00:00
bs4 bitbake: lib/bs4: Fix imports from html5lib >= 0.9999999/1.0b8 2016-12-07 10:43:20 +00:00
ply bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
progressbar bitbake: lib: implement basic task progress support 2016-07-08 09:57:26 +01:00
prserv bitbake: prserv/persist_data/utils: Drop obsolete python2 imports 2017-01-09 13:39:13 +00:00
toaster bitbake: bitbake: toaster: add wic.bmap support to toaster 2017-02-15 20:08:15 -08:00
codegen.py bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
pyinotify.py bitbake: bitbake/pyinotify.py: Upgrade to py3 version 2016-06-02 08:24:02 +01:00