Rewrite features.sh in Lua (#2045)
* build: target_config_lib: introduce concat_list helper * build: rewrite features.sh in Lua The `features` file is converted to a Lua-based DSL. A helper function `_` is used in the DSL; this will return the original string for enabled features, and nil for disabled features. This allows to use boolean operations on features without making the code too verbose. Besides having more readable and robust code, this also fixes the bug that all files `packages/*/features` were evaluated instead of only using the feature definitions of currently active feeds. * build: add luacheck support for package/features
No related branches found
No related tags found
Showing
- .luacheckrc 8 additions, 0 deletions.luacheckrc
- docs/dev/packages.rst 44 additions, 26 deletionsdocs/dev/packages.rst
- package/features 58 additions, 26 deletionspackage/features
- scripts/feature_lib.lua 60 additions, 0 deletionsscripts/feature_lib.lua
- scripts/features.sh 0 additions, 77 deletionsscripts/features.sh
- scripts/target_config_lib.lua 36 additions, 17 deletionsscripts/target_config_lib.lua
scripts/feature_lib.lua
0 → 100644
scripts/features.sh
deleted
100755 → 0
Please register or sign in to comment