bitbake: lib/bb: Add filter support

Add the python API for applying filters to a string and being able to
register functions as filters.

Filter functions are pure functions where an input is translated into
an output and there are no external data accesses. This means translations
can be cached as they won't change.

(Bitbake rev: 7d25d7511ca14213eea78ee739d260295cfa4045)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Watt
2022-12-15 15:07:16 -06:00
committed by Richard Purdie
parent 2a3ec28060
commit 6fcda5cecd
3 changed files with 231 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ tests = ["bb.tests.codeparser",
"bb.tests.siggen",
"bb.tests.utils",
"bb.tests.compression",
"bb.tests.filter",
"hashserv.tests",
"prserv.tests",
"layerindexlib.tests.layerindexobj",