[OpenWrt-Devel] [PATCH] bugfix: FORCE=1 doesn't work to override prereq checks

Lawrence D'Anna larry at elder-gods.org
Sun Jul 19 18:50:15 EDT 2015


If the build prereq checks fail, you get the message

   Prerequisite check failed. Use FORCE=1 to override.

But re-trying with "make menuconfig FORCE=1" gives you the same result.

This patch fixes that.

Signed-off-by: Lawrence D'Anna <larry at elder-gods.org>
---
 include/prereq.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/prereq.mk b/include/prereq.mk
index 33ac278..770dafd 100644
--- a/include/prereq.mk
+++ b/include/prereq.mk
@@ -14,7 +14,7 @@ prereq:
 		cat $(TMP_DIR)/.prereq-error; \
 		rm -f $(TMP_DIR)/.prereq-error; \
 		echo; \
-		false; \
+		$(if $(FORCE),true,false); \
 	fi
 
 .SILENT: prereq
-- 
2.3.8 (Apple Git-58)
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list