[openwrt/openwrt] libmbedtls: use defaults if no build opts selected

LEDE Commits lede-commits at lists.infradead.org
Wed Nov 16 02:53:38 PST 2022


stintel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0d43c22d47b91fd64fea707290f9dce3ba2a273f

commit 0d43c22d47b91fd64fea707290f9dce3ba2a273f
Author: Glenn Strauss <gstrauss at gluelogic.com>
AuthorDate: Tue Nov 15 17:12:56 2022 -0500

    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 at gluelogic.com>
---
 package/libs/mbedtls/Makefile | 5 +++--
 1 file 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




More information about the lede-commits mailing list