try other way
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 13 Feb 2022 18:24:31 +0000 (19:24 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 13 Feb 2022 18:24:31 +0000 (19:24 +0100)
include/prereq-build.mk

index bd8d7fa1d0675d2e7352952d7d662d38ffeec8e3..de7455cfbea379d89b7723992756c568d097dad0 100644 (file)
@@ -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 $@)