Paul Spooren e34f04f4bc build: use mkhash for IPK metadata checksums
When setting the option IPK_FILES_CHECKSUMS the build system stores
checksums of all package file as metadata. In combination with pkg_check
this allows to see if a package is broken, e.g. caused by bad flash.

To create those checksums the tool `sha256sum` were used while the rest
of OpenWrt uses `mkhash`, a small & fast implementation of sha256. As
the build system does not check the existence of `sha256sum` and the
stderr output is moved to /dev/null, a situation where the option is
enabled but no actual checksum are created may occur.

Instead of adding `sha256sum` as a requirement, this replaces it with
`mkhash sha256` and adapts the `sed` pipe command to fit spacing.

CC: Xu Wang <xwang1498@gmx.com>
CC: Michal Hrusecky <Michal@Hrusecky.net>

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-11-26 19:06:13 -10:00
..
2019-08-12 12:27:06 +02:00
2015-03-29 07:29:18 +00:00
2020-07-11 15:19:53 +02:00
2020-11-26 11:17:55 +01:00
2019-01-30 13:20:14 +01:00
2018-08-05 00:06:27 +02:00
2020-04-26 21:20:47 +02:00
2019-12-23 00:22:07 +01:00
2020-08-31 11:26:10 +01:00