aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatryk Duda <patrykd@google.com>2024-04-05 11:26:54 +0200
committerBoringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-04-11 19:08:45 +0000
commitbdb7b19c3cd336b9e44086f677a0e37402c4bf13 (patch)
treea604541120736741997225e19110a40bbba4ff64 /include
parent6b3e5d5c3565dac726c81b6ca19580ec5a7c2676 (diff)
downloadboringssl-bdb7b19c3cd336b9e44086f677a0e37402c4bf13.zip
boringssl-bdb7b19c3cd336b9e44086f677a0e37402c4bf13.tar.gz
boringssl-bdb7b19c3cd336b9e44086f677a0e37402c4bf13.tar.bz2
Enable thread support for Zephyr RTOS
Zephyr RTOS supports multithreading with preemptive scheduling, so we must enable support for threads in BoringSSL BUG=b:321092852 Change-Id: I6fadce72e71ac043513fda0a5639261ba396b7f5 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/67628 Reviewed-by: Bob Beck <bbe@google.com> Commit-Queue: David Benjamin <davidben@google.com> Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/target.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/openssl/target.h b/include/openssl/target.h
index 8b05661..2760f52 100644
--- a/include/openssl/target.h
+++ b/include/openssl/target.h
@@ -152,12 +152,15 @@
// Defining this on any other platform is not supported. Other embedded
// platforms must introduce their own defines.
//
-// https://chromium.googlesource.com/chromiumos/platform/ec/+/HEAD/docs/zephyr/README.md
+// Zephyr supports multithreading with cooperative and preemptive scheduling.
+// It also implements POSIX Threads (pthread) API, so it's not necessary to
+// implement BoringSSL internal threading API using some custom API.
+//
+// https://www.zephyrproject.org/
#if defined(__ZEPHYR__)
#define OPENSSL_NO_FILESYSTEM
#define OPENSSL_NO_POSIX_IO
#define OPENSSL_NO_SOCK
-#define OPENSSL_NO_THREADS_CORRUPT_MEMORY_AND_LEAK_SECRETS_IF_THREADED
#endif
#if defined(__ANDROID_API__)