From 7a315b0b5d6aa91695853a8647383876e4b49a7a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 14 Dec 2016 15:36:39 +0100 Subject: build: implement make check and make package/X/check This is intended to be used for a wide array of package sanity checks. The first check that is implemented is for the hash of downloaded files. It checks: - Missing hash - Use of SHA256 instead of MD5 - dl/ hash not matching hash in makefile - deprecated MD5SUM variable The deprecated MD5SUM variable check is skipped for feeds/ until OpenWrt is updated as well Signed-off-by: Felix Fietkau --- include/host-build.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/host-build.mk') diff --git a/include/host-build.mk b/include/host-build.mk index 1ba849f..e11e3ed 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -136,9 +136,8 @@ Host/Exports=$(Host/Exports/Default) .NOTPARALLEL: ifndef DUMP - define HostBuild + define HostBuild/Core $(if $(HOST_QUILT),$(Host/Quilt)) - $(if $(if $(PKG_HOST_ONLY),,$(STAMP_PREPARED)),,$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default))) $(if $(DUMP),,$(call HostHost/Autoclean)) $(HOST_STAMP_PREPARED): @@ -198,3 +197,8 @@ ifndef DUMP clean: endif + +define HostBuild + $(HostBuild/Core) + $(if $(if $(PKG_HOST_ONLY),,$(STAMP_PREPARED)),,$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default))) +endef -- cgit v1.1