Skip to content

Conversation

@donghengqaz
Copy link
Contributor

@donghengqaz donghengqaz commented Aug 5, 2022

esp-idf: Make esp-idf supports 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

@donghengqaz donghengqaz force-pushed the feature/esp-idf_support_ssp branch from fc7ef44 to 592b442 Compare August 5, 2022 07:46
@wenyongh
Copy link
Contributor

wenyongh commented Aug 6, 2022

@donghengqaz, Thanks for uploading the PR! @loganek is also extending support for socket APIs, see #1336,
currently the development branch is dev/socket, and there are already some patches merged.
It seems that your PR has duplicated changes with them. Could you please split your PR into two parts: changes for socket and changes for non-socket? And for the former part, please submit it into dev/socket also, for the latter part, please submit it to the main branch.

@donghengqaz
Copy link
Contributor Author

@donghengqaz, Thanks for uploading the PR! @loganek is also extending support for socket APIs, see #1336, currently the development branch is dev/socket, and there are already some patches merged. It seems that your PR has duplicated changes with them. Could you please split your PR into two parts: changes for socket and changes for non-socket? And for the former part, please submit it into dev/socket also, for the latter part, please submit it to the main branch.

@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.
@donghengqaz donghengqaz force-pushed the feature/esp-idf_support_ssp branch from 35e8bf7 to 899d4fe Compare August 8, 2022 08:18
@donghengqaz donghengqaz force-pushed the feature/esp-idf_support_ssp branch from 899d4fe to 2c5bb53 Compare August 11, 2022 03:34
@donghengqaz donghengqaz force-pushed the feature/esp-idf_support_ssp branch from 2c5bb53 to dae3d47 Compare August 15, 2022 06:31
@wenyongh wenyongh merged commit 071b8c2 into bytecodealliance:main Aug 15, 2022
@donghengqaz donghengqaz deleted the feature/esp-idf_support_ssp branch August 16, 2022 03:27
loganek pushed a commit to loganek/wasm-micro-runtime that referenced this pull request Aug 31, 2022
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
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants