You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/02/23 10:05:32 UTC

[nuttx-apps] branch master updated: crypto/mbedtls: disable optimize on sim platform

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 7cc325ae8 crypto/mbedtls: disable optimize on sim platform
7cc325ae8 is described below

commit 7cc325ae8393cc4498e866feb272373d275a785e
Author: chao an <an...@xiaomi.com>
AuthorDate: Wed Feb 22 17:28:35 2023 +0800

    crypto/mbedtls: disable optimize on sim platform
    
    Signed-off-by: chao an <an...@xiaomi.com>
---
 crypto/mbedtls/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/crypto/mbedtls/Makefile b/crypto/mbedtls/Makefile
index 1b9245f99..b51f308a5 100644
--- a/crypto/mbedtls/Makefile
+++ b/crypto/mbedtls/Makefile
@@ -38,6 +38,12 @@ MBEDTLS_UNPACKPROGDIR = $(MBEDTLS_UNPACKNAME)$(DELIM)programs
 # This lets Mbed TLS better use some of the POSIX features we have
 CFLAGS += ${DEFINE_PREFIX}__unix__
 
+library/bignum.c_CFLAGS += -fno-lto
+
+ifeq ($(CONFIG_ARCH_SIM),y)
+  CFLAGS += -O0
+endif
+
 CSRCS = $(wildcard $(MBEDTLS_UNPACKLIBDIR)$(DELIM)*.c)
 
 $(MBEDTLS_ZIP):