From: Hauke Mehrtens Date: Sun, 13 Feb 2022 18:24:31 +0000 (+0100) Subject: try other way X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=905c51ddd22cc714dd35ece3f5ac9637fda91de7;p=openwrt%2Fstaging%2Fhauke.git try other way --- diff --git a/include/prereq-build.mk b/include/prereq-build.mk index bd8d7fa1d0..de7455cfbe 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -190,8 +190,8 @@ $(eval $(call SetupHostCommand,which,Please install 'which', \ /bin/which which, \ which which)) -$(eval $(call SetupHostCommand,swig,Please install 'swig', \ - swig -python -help |grep "Python")) +$(eval $(call $(if $(CONFIG_PACKAGE_uboot-envtools),SetupHostCommand,Ignore),swig,Please install 'swig', \ + swig -python -help 2>&1 |grep 'Python')) $(STAGING_DIR_HOST)/bin/mkhash: $(SCRIPT_DIR)/mkhash.c mkdir -p $(dir $@)