openwrt/include
Eneas U de Queiroz 8cf4d4df55 download: improve handling of invalid local files
4e19cbc553: [download: handle possibly invalid local tarballs] added a
FORCE rule to downloaded files, so that they will be always checked by
download.pl.

As a side-effect, check-compile will fail, forcing unnecessary package
rebuilds.
The check-compile.txt log shows (for libxml2 for example):
  Considering target file '.../dl/libxml2-2.9.12.tar.gz'.
    ...
    prerequisite 'FORCE' of target '.../dl/libxml2-2.9.12.tar.gz' does
    not exist.
    Must remake target '.../dl/libxml2-2.9.12.tar.gz'.
    ...
   Giving up on target file '...libxml2-2.9.12/.prepared_...'.
   Giving up on target file '...libxml2-2.9.12/.configured_...'.
   Giving up on target file '...libxml2-2.9.12/.built'.
   Giving up on target file '...stamp/.libxml2_installed'.
  Giving up on target file '.compile'.

Then the package is rebuilt even if it is not otherwise needed.

To fix this, instead of always forcing the download target to be remade,
check its hash first: if it matches, then the FORCE is not added.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-11-01 20:18:55 +01:00
..
site Revert "build: use config.site generated by autoconf-lean, drop hardcoded sitefiles" 2021-03-02 11:35:45 +00:00
autotools.mk build: prevent dupes in autotools.mk 2021-03-01 16:16:32 +00:00
bpf.mk build: fix bpf toolchain dependency for qosify 2021-11-01 18:41:20 +01:00
cmake.mk include/cmake.mk: fix host builds with CMAKE_BINARY_SUBDIR 2021-10-20 11:35:34 +02:00
debug.mk
depends.mk build: introduce $(MKHASH) 2021-05-13 15:13:15 +02:00
device_table.txt
download.mk download: improve handling of invalid local files 2021-11-01 20:18:55 +01:00
feeds.mk build: ensure that dash isn't prepended twice to abi version suffix 2021-06-15 09:58:33 +02:00
hardened-ld-pie.specs
hardening.mk
host-build.mk download: improve handling of invalid local files 2021-11-01 20:18:55 +01:00
image-commands.mk build: move elecom-wrc-gs-factory to image-commands.mk 2021-10-30 22:05:25 +02:00
image.mk image: define DEVICE_DTS_DELIMITER as per-device variable 2021-10-24 11:19:58 +02:00
kernel-build.mk generic: Kconfig: exit on unset symbol 2021-08-10 13:14:52 +02:00
kernel-defaults.mk build: fix regression for kernels < 5.10 2021-05-25 19:46:13 +02:00
kernel-version.mk kernel: bump 5.10 to 5.10.76 2021-10-30 21:17:20 +02:00
kernel.mk build: use -nostdinc and -isystem in NOSTDINC_FLAGS for out-of-tree kernel modules 2021-03-18 10:53:26 +01:00
logo.png
logo.svg
meson.mk tools/meson: update to 0.60.0 2021-10-30 21:17:20 +02:00
netfilter.mk netfilter: remove no-op kconfig symbols 2021-05-01 00:37:15 +02:00
nls.mk
package-bin.mk
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk build: prepend ABI suffixes with a dash if package name ends with digit 2021-06-14 15:14:19 +02:00
package-seccomp.mk
package.mk download: improve handling of invalid local files 2021-11-01 20:18:55 +01:00
prereq-build.mk build: prereq detect Python 3.10 for python3 binary 2021-10-10 15:25:58 +01:00
prereq.mk Revert "build: replace which with Bash command built-in" 2021-03-03 22:51:39 +01:00
quilt.mk build: introduce $(MKHASH) 2021-05-13 15:13:15 +02:00
rootfs.mk
scan.awk
scan.mk build: introduce $(MKHASH) 2021-05-13 15:13:15 +02:00
shell.sh
subdir.mk
target.mk buildsystem: add CONFIG_SECCOMP 2021-10-16 02:00:47 +01:00
toolchain-build.mk
toplevel.mk toplevel.mk: remove legacy packages feed from 'make distclean' 2021-02-20 13:11:10 -10:00
trusted-firmware-a.mk
u-boot.mk u-boot.mk: always link host libraries static 2021-10-24 18:00:49 +02:00
uclibc++.mk uclibc++: remove 2021-10-24 18:20:50 +02:00
unpack.mk include: use cpio from staging dir 2021-02-28 00:09:09 +00:00
verbose.mk
version.mk