aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-11-15 17:12:56 -0500
committerStijn Tintel <stijn@linux-ipv6.be>2022-11-16 12:27:18 +0200
commit0d43c22d47b91fd64fea707290f9dce3ba2a273f (patch)
tree6b9a57356b4a30db14f6db210903045685906fff /package/libs
parenta110418027a4c6f97c33980b8e4d7f07d39726de (diff)
downloadupstream-0d43c22d47b91fd64fea707290f9dce3ba2a273f.tar.gz
upstream-0d43c22d47b91fd64fea707290f9dce3ba2a273f.tar.bz2
upstream-0d43c22d47b91fd64fea707290f9dce3ba2a273f.zip
libmbedtls: use defaults if no build opts selected
use defaults if no build opts selected (allows build with defaults when mbedtls not selected and configured) Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
Diffstat (limited to 'package/libs')
-rw-r--r--package/libs/mbedtls/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/libs/mbedtls/Makefile b/package/libs/mbedtls/Makefile
index a489f56755..fd0f821d85 100644
--- a/package/libs/mbedtls/Makefile
+++ b/package/libs/mbedtls/Makefile
@@ -140,10 +140,11 @@ endef
define Build/Prepare
$(call Build/Prepare/Default)
- $(foreach opt,$(MBEDTLS_BUILD_OPTS),
+ $(if $(strip $(foreach opt,$(MBEDTLS_BUILD_OPTS),$($(opt)))),
+ $(foreach opt,$(MBEDTLS_BUILD_OPTS),
$(PKG_BUILD_DIR)/scripts/config.py \
-f $(PKG_BUILD_DIR)/include/mbedtls/config.h \
- $(if $($(opt)),set,unset) $(patsubst CONFIG_%,%,$(opt)))
+ $(if $($(opt)),set,unset) $(patsubst CONFIG_%,%,$(opt))),)
endef
define Build/InstallDev