Fix a few problems with download_prerequisites.
authorAndrew Pinski <apinski@marvell.com>
Tue, 24 Aug 2021 05:56:59 +0000 (05:56 +0000)
committerAndrew Pinski <apinski@marvell.com>
Tue, 24 Aug 2021 08:09:53 +0000 (08:09 +0000)
commit0deabebedd16c9519bfb1dfbff303c2d9bd701ee
tree245fce087f413b4cec17882e5c2186e4e0866850
parentf8977166135de09fe36a3b57cc11daa67587604e
Fix a few problems with download_prerequisites.

There are a few problems with download_prerequisites are
described in PR 82704.  The first is on busy-box version of
shasum and md5sum the extended option --check don't exist
so just use -c.  The second issue is the code for which
shasum program to use is included twice and is different.
So move which program to use for the checksum after argument
parsing.  The last issue is --md5 option has been broken for
sometime now as the program is named md5sum and not just md5.
Nobody updated switch table to be correct.

contrib/ChangeLog:

PR other/82704
* download_prerequisites: Fix issues with --md5 and
--sha512 options.
contrib/download_prerequisites