Skip to contentSkip to conversation

package/pkg-utils: add missing licensing data to show-info

Buildroot Peter Korsgaard 1 participant 1 message Feb 29, 2024

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=62279f8592cfc4d67771e3df2b5e0c8e1a5b37f9
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2023.02.x

While the list of licenses is present in the show-info output, the list of license files and the redistributable status were missing. Add them.

(cherry picked from commit 5647d5c1900bde13cedd36efd09404ea5763c0fb)
---
 package/pkg-utils.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/pkg-utils.mk +4 -0
index 059e86ae0a..723bbe4e24 100644
@@ -157,6 +157,10 @@ endef
 define _json-info-pkg-details
 	"version": $(call mk-json-str,$($(1)_DL_VERSION)),
 	"licenses": $(call mk-json-str,$($(1)_LICENSE)),
+	"license_files": [
+		$(foreach f, $($(1)_LICENSE_FILES),$(call mk-json-str,$(f))$(comma))
+	],
+	"redistributable": $(if $(filter NO,$($(1)_REDISTRIBUTE)),false,true),
 	"dl_dir": $(call mk-json-str,$($(1)_DL_SUBDIR)),
 	"downloads": [
 	$(foreach dl,$(sort $($(1)_ALL_DOWNLOADS)),

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot