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>
This commit is contained in:
Glenn Strauss 2022-11-15 17:12:56 -05:00 committed by Stijn Tintel
parent a110418027
commit 0d43c22d47

View File

@ -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