Openwrt/include
Petr Štetiar 4e19cbc553 download: handle possibly invalid local tarballs
Currently it's assumed, that already downloaded tarballs are always
fine, so no checksum checking is performed and the tarball is used even
if it might be corrupted.

From now on, we're going to always check the downloaded tarballs before
considering them valid.

Steps to reproduce:

 1. Remove cached tarball

   rm dl/libubox-2020-08-06-9e52171d.tar.xz

 2. Download valid tarball again

   make package/libubox/download

 3. Invalidate the tarball

   sed -i 's/PKG_MIRROR_HASH:=../PKG_MIRROR_HASH:=ff/' package/libs/libubox/Makefile

 4. Now compile with corrupt tarball source

   make package/libubox/{clean,compile}

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-11-27 14:46:13 +01:00
..
site
autotools.mk
cmake.mk build: support cmake verbose for host builds 2020-11-14 14:48:30 +01:00
debug.mk
depends.mk
device_table.txt
download.mk
feeds.mk
hardened-ld-pie.specs
hardening.mk
host-build.mk download: handle possibly invalid local tarballs 2020-11-27 14:46:13 +01:00
image-commands.mk build: add UIMAGE_MAGIC to device variables 2020-11-25 15:55:26 +01:00
image.mk build: add UIMAGE_MAGIC to device variables 2020-11-25 15:55:26 +01:00
kernel-build.mk build: create $(PKG_SYMVERS_DIR) if non-existent 2020-11-19 18:52:15 +01:00
kernel-defaults.mk
kernel-version.mk kernel: bump 5.4 to 5.4.80 2020-11-26 11:17:55 +01:00
kernel.mk build: create $(PKG_SYMVERS_DIR) if non-existent 2020-11-19 18:52:15 +01:00
netfilter.mk netfilter: Add queue support for nftables 2020-11-12 18:19:44 +01:00
nls.mk
package-bin.mk
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk build: use mkhash for IPK metadata checksums 2020-11-26 19:06:13 -10:00
package-seccomp.mk
package.mk download: handle possibly invalid local tarballs 2020-11-27 14:46:13 +01:00
prereq-build.mk prereq-build: add python 3.9 support 2020-11-24 23:40:39 -10:00
prereq.mk
quilt.mk
rootfs.mk
scan.awk
scan.mk
shell.sh
subdir.mk
target.mk build: filter out more autogenerated kernel config options 2020-11-13 13:18:20 +01:00
toolchain-build.mk
toplevel.mk build: detect broken make version on macOS 2020-11-14 14:48:30 +01:00
u-boot.mk
uclibc++.mk
unpack.mk
verbose.mk
version.mk