Skip to contentSkip to conversation

utils/add-custom-hashes: add script to manage global patch dir hashes

Buildroot Peter Korsgaard 1 participant 1 message Nov 12, 2023

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=4984d0f230d0962270beb195966603f1d5a56300
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Add a script to manage the .hash files in the BR2_GLOBAL_PATCH_DIR for packages using custom versions.

To use it, run in a configured Buildroot directory, E.G.

make foo_defconfig; ./utils/add-custom-hashes

We support multiple patch directories in BR2_GLOBAL_PATCH_DIR. If multiple directories are specified then use the last one as that is likely to be the most specific one.

[Peter: silence command -v invocation]
---
 docs/manual/customize-patches.adoc |   2 +
 utils/add-custom-hashes            | 103 +++++++++++++++++++++++++++++++++++++
 2 files changed, 105 insertions(+)
docs/manual/customize-patches.adoc +2 -0
index 72e87c3c04..f33bbcdde7 100644
@@ -79,3 +79,5 @@ the first file to exist is used to check a package download:
 
 * +<global-patch-dir>/<packagename>/<packageversion>/<packagename>.hash+
 * +<global-patch-dir>/<packagename>/<packagename>.hash+
+
+The +utils/add-custom-hashes+ script can be used to generate these files.
utils/add-custom-hashes new file +103 -0

103 lines not on this page · raw message

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