immortalwrt/include
Eneas U de Queiroz 7162cbb4b5 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-16 13:12:54 +08:00
..
site Revert "build: use config.site generated by autoconf-lean, drop hardcoded sitefiles" 2021-03-02 22:02:38 +08:00
autotools.mk build: prevent dupes in autotools.mk 2021-03-02 12:06:12 +08:00
cmake.mk include/cmake.mk: fix host builds with CMAKE_BINARY_SUBDIR 2021-10-24 00:08:12 +08:00
debug.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
depends.mk build: introduce $(MKHASH) 2021-05-13 22:49:42 +08:00
device_table.txt fix permission 2019-09-30 13:52:50 +08:00
download.mk download: improve handling of invalid local files 2021-11-16 13:12:54 +08:00
feeds.mk build: ensure that dash isn't prepended twice to abi version suffix 2021-06-15 23:13:36 +08:00
hardened-ld-pie.specs fix permission 2019-09-30 13:52:50 +08:00
hardening.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
host-build.mk download: improve handling of invalid local files 2021-11-16 13:12:54 +08:00
image-commands.mk x86: use qemu-image command from image-commands.mk 2021-06-17 19:48:43 +08:00
image-legacy.mk fix permisson 2019-08-16 15:09:42 +08:00
image.mk build: store artifacts in JSON 2021-09-17 04:49:04 +08:00
kernel-build.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
kernel-defaults.mk build: introduce $(MKHASH) 2021-05-13 22:49:42 +08:00
kernel-version.mk kernel: bump to 4.9.288, 4.14.253, 4.19.214 2021-10-28 11:15:06 +08:00
kernel.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
meson.mk tools/meson: fix usage with SDK 2021-10-12 23:40:34 +08:00
netfilter.mk netfilter: drop kmod-ipt-cgroup 2021-03-22 17:05:47 +08:00
nls.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
package-bin.mk build: avoid rebuilds of unset VARIANT packages 2021-11-12 14:19:51 +08:00
package-defaults.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
package-dumpinfo.mk build: drop ABI version from metadata 2021-02-15 12:17:04 +08:00
package-ipkg.mk build: avoid rebuilds of unset VARIANT packages 2021-11-12 14:19:51 +08:00
package-seccomp.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
package.mk download: improve handling of invalid local files 2021-11-16 13:12:54 +08:00
prereq-build.mk build: fix which detection on Fedora & MacOS 2021-10-03 23:50:40 +08:00
prereq.mk Revert "build: replace which with Bash command built-in" 2021-03-04 12:10:58 +08:00
quilt.mk build: introduce $(MKHASH) 2021-05-13 22:49:42 +08:00
rootfs.mk build: reduce cleanup binary calls in rootfs.mk 2020-12-08 11:31:45 +08:00
scan.awk fix permisson 2019-08-16 15:09:42 +08:00
scan.mk build: introduce $(MKHASH) 2021-05-13 22:49:42 +08:00
shell.sh add luci-app-haproxy & luci-app-udpspeederv2 2019-05-25 21:05:51 +08:00
subdir.mk build: add SUBDIR_MAKE_DEBUG variable to make it easier to debug package makefiles 2021-11-12 14:20:06 +08:00
target.mk target: drop some default packages 2021-09-11 05:01:06 +08:00
toolchain-build.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
toplevel.mk toplevel.mk: remove legacy packages feed from 'make distclean' 2021-02-21 12:09:37 +08:00
u-boot.mk u-boot: support verbose build 2021-06-13 11:57:51 +08:00
uclibc++.mk uclibc++: remove 2021-10-26 23:50:42 +08:00
unpack.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
verbose.mk build: use SPDX license tags 2021-02-06 12:07:10 +08:00
version.mk include: adjust VERSION_NUMBER for 18.06 2021-02-21 15:47:21 +08:00