diff mbox

u-boot: Add sha256 hash value for earlier 2013.10 version.

Message ID alpine.LFD.2.11.1504191245070.8977@localhost
State Rejected
Headers show

Commit Message

Robert P. J. Day April 19, 2015, 4:49 p.m. UTC
Add a hash value for u-boot-2013.10.tar.bz2.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

---

  if i understand this correctly, if a package has no hash file, then
downloading generates a warning. but with the newly-added uboot.hash
file, the missing sha256sum for the earlier 2013.10 version generates
an "ERROR" when running "make source", even though the tarball is in
fact downloaded correctly. so just add a hash value to quiet the
download.

Comments

Thomas Petazzoni April 21, 2015, 11:35 a.m. UTC | #1
Dear Robert P. J. Day,

On Sun, 19 Apr 2015 12:49:26 -0400 (EDT), Robert P. J. Day wrote:
> 
> Add a hash value for u-boot-2013.10.tar.bz2.
> 
> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
> 
> ---
> 
>   if i understand this correctly, if a package has no hash file, then
> downloading generates a warning. but with the newly-added uboot.hash
> file, the missing sha256sum for the earlier 2013.10 version generates
> an "ERROR" when running "make source", even though the tarball is in
> fact downloaded correctly. so just add a hash value to quiet the
> download.

Nope, that's not the right way of doing things. First and foremost, a
missing hash in the hash file is currently not a hard failure, only a
warning. It will be turned into a hard failure soon, but with
appropriate handling of custom versions (see the patch series being
sent by Yann E. Morin and Arnout Vandecappelle about this).

The problem with your patch is that it adds just the hash file 2013.10.
What about the dozens of other U-Boot releases? And the zillions of
U-Boot forks all over the place?

Since it doesn't scale, we're going t keep it is simple: a hash for the
default U-Boot version currently used by Buildroot, and that's it.

Best regards,

Thomas
diff mbox

Patch

diff --git a/boot/uboot/uboot.hash b/boot/uboot/uboot.hash
index 9cc96f6..b98c2ff 100644
--- a/boot/uboot/uboot.hash
+++ b/boot/uboot/uboot.hash
@@ -1,2 +1,3 @@ 
 # Locally computed:
 sha256	0a1a70df586655f527befa6f12e184e96ed61b126e5a567382321b17200f5d60  u-boot-2015.04.tar.bz2
+sha256	0d71e62beb952b41ebafb20a7ee4df2f960db64c31b054721ceb79ff14014c55  u-boot-2013.10.tar.bz2