[Buildroot] [PATCH v3 4/5] package/pkg-utils: add 'hashes' to show-info
Thomas Perale
thomas.perale at mind.be
Wed Mar 25 14:59:21 UTC 2026
Acked-By: Thomas Perale <thomas.perale at mind.be>
In reply of:
> Finding the hash file for a package is non-trivial, as they can be in a
> <version> sub-directory or under GLOBAL_PATCH_DIR. To allow other tools
> such as utils/generate-cyclonedx to find hash files, expose this information
> from show-info. If a package does not provide a hash file, create an
> empty hashes array.
>
> Suggested-by: Thomas Perale <thomas.perale at mind.be>
> Signed-off-by: Martin Willi <martin at strongswan.org>
> ---
> package/pkg-utils.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk
> index 211e681e8f5c..17b0aa176045 100644
> --- a/package/pkg-utils.mk
> +++ b/package/pkg-utils.mk
> @@ -197,6 +197,13 @@ define _json-info-pkg-details
> },
> )
> ],
> + "hashes": [
> + $(call make-comma-list, \
> + $(foreach hash,$(wildcard $($(1)_HASH_FILES)),
> + $(call mk-json-str,$(hash)) \
> + ) \
> + )
> + ],
> "patches": [
> $(foreach patch, \
> $(call pkg-patches-list,$(1)), \
> --
> 2.43.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
More information about the buildroot
mailing list