-
Notifications
You must be signed in to change notification settings - Fork 735
esp-idf: Make esp-idf supports Libc WASI #1356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp-idf: Make esp-idf supports Libc WASI #1356
Conversation
fc7ef44 to
592b442
Compare
|
@donghengqaz, Thanks for uploading the PR! @loganek is also extending support for socket APIs, see #1336, |
@wenyongh thanks for your advice, and I will do as you mentioned. |
WASM APP libs' DIR is set inside a function, cannot be gotten from the upper layer. For the platform such as IDF, users need to get this DIR and include it manually.
35e8bf7 to
899d4fe
Compare
core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h
Outdated
Show resolved
Hide resolved
899d4fe to
2c5bb53
Compare
core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/ssp_config.h
Outdated
Show resolved
Hide resolved
2c5bb53 to
dae3d47
Compare
esp-idf: Make esp-idf support Libc WASI 1. Support to get WASM APP libs' DIR from upper layer 2. Add SSP support for esp-idf platform 3. Change the errno of readlinkat
| #if (defined(__linux__) || defined(ESP_PLATFORM)) \ | ||
| && (!defined(__GLIBC__) || __GLIBC__ > 2 \ | ||
| || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 25)) | ||
| #define CONFIG_HAS_GETRANDOM 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@donghengqaz
is this glibc version check really relevant to esp-idf?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very old modification, I added this to avoid compiling errors.
esp-idf: Make esp-idf support Libc WASI 1. Support to get WASM APP libs' DIR from upper layer 2. Add SSP support for esp-idf platform 3. Change the errno of readlinkat
esp-idf: Make esp-idf supports Libc WASI