mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
package/pkg-utils: add 'hashes' to show-info
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@mind.be>
Signed-off-by: Martin Willi <martin@strongswan.org>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
(cherry picked from commit 619d44b23a)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
860d1de569
commit
d32ced8e4e
@@ -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)), \
|
||||
|
||||
Reference in New Issue
Block a user