From 0d43c22d47b91fd64fea707290f9dce3ba2a273f Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Tue, 15 Nov 2022 17:12:56 -0500 Subject: [PATCH] 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 --- 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 -- 2.30.2