Browse Source

allow to disable checksum checking

Waldemar Brodkorb 10 years ago
parent
commit
0ab35d9839
2 changed files with 8 additions and 4 deletions
  1. 2 4
      mk/fetch.mk
  2. 6 0
      target/config/Config.in.adk

+ 2 - 4
mk/fetch.mk

@@ -10,17 +10,13 @@ endif
 FULLDISTFILES=		$(patsubst %,${FULLDISTDIR}/%,${DISTFILES})
 
 FETCH_STYLE?=		auto
-#pre-fetch:
 do-fetch:
-#post-fetch:
 fetch:
-#	@${MAKE} pre-fetch
 ifneq ($(filter auto,${FETCH_STYLE}),)
 	${MAKE} ${FULLDISTFILES}
 else
 	${MAKE} do-fetch
 endif
-#	@${MAKE} post-fetch
 
 refetch:
 	-rm -f ${FULLDISTFILES}
@@ -31,6 +27,7 @@ checksum: ${_CHECKSUM_COOKIE}
 ifeq ($(strip ${NO_CHECKSUM}),)
 ${_CHECKSUM_COOKIE}: ${FULLDISTFILES}
 	-rm -rf ${WRKDIR}
+ifneq ($(ADK_DISABLE_CHECKSUM),y)
 	@OK=n; \
 	allsums="$(strip ${PKG_MD5SUM})"; \
 	(md5sum ${FULLDISTFILES}; echo exit) | while read sum name; do \
@@ -50,6 +47,7 @@ ${_CHECKSUM_COOKIE}: ${FULLDISTFILES}
 		echo >&2 ":---> really is '$$sum'"; \
 		OK=0; \
 	done
+endif
 	mkdir -p ${WRKDIR}
 	touch ${_CHECKSUM_COOKIE}
 endif

+ 6 - 0
target/config/Config.in.adk

@@ -22,6 +22,12 @@ config ADK_DISABLE_HONOUR_CFLAGS
 	help
 	  Disable honour CFLAGS checks.
 
+config ADK_DISABLE_CHECKSUM
+	bool "Disable checksum check for downloads globally"
+	default n
+	help
+	  Disable checksum checks of downloads.
+
 config ADK_DISABLE_KERNEL_PATCHES
 	bool "Disable global kernel patches"
 	default n