package/pkg-utils: add 'provides' to show-info
commit: https://git.buildroot.net/buildroot/commit/?id=0dd7a3017fe37f6add763cf46879ac1fdc089707
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Add the list of virtual packages a show-info entry provides to the output.
For more information on virtual packages infrastructure see [1]
[1] https://buildroot.org/downloads/manual/manual.html#_infrastructure_for_virtual_packages
Signed-off-by Thomas Perale <[email protected]>
Signed-off-by Peter Korsgaard <[email protected]>
--- package/pkg-utils.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
package/pkg-utils.mk +8 -1
@@ -201,9 +201,16 @@ define _json-info-pkg-details $(foreach patch, \ $(call pkg-patches-list,$(1)), \ $(call mk-json-str,$(patsubst $(CONFIG_DIR)/%,%,$(patch)))$(comma) \ - ) ], + $(if $($(1)_PROVIDES), \ + "provides": [ \ + $(foreach provide, \ + $($(1)_PROVIDES), \ + $(call mk-json-str,$(provide))$(comma) \ + ) \ + ]$(comma) \ + ) endef define _json-info-fs
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot