mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 07:21:54 +00:00
Update esp-idf platform support in main (#3304)
1. Fix API "futimens" and "utimensat" compiling error in different esp-idf version 2. Update component registry description file ps. refer to PR #3296 on branch release/1.3x
This commit is contained in:
parent
4e634bed3f
commit
9b28a8a80e
|
@ -6,6 +6,12 @@
|
||||||
#include "platform_api_vmcore.h"
|
#include "platform_api_vmcore.h"
|
||||||
#include "platform_api_extension.h"
|
#include "platform_api_extension.h"
|
||||||
|
|
||||||
|
#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)) \
|
||||||
|
&& (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 2, 0))
|
||||||
|
#define UTIMENSAT_TIMESPEC_POINTER 1
|
||||||
|
#define FUTIMENS_TIMESPEC_POINTER 1
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
bh_platform_init()
|
bh_platform_init()
|
||||||
{
|
{
|
||||||
|
@ -234,7 +240,13 @@ unlinkat(int fd, const char *path, int flag)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
utimensat(int fd, const char *path, const struct timespec ts[2], int flag)
|
utimensat(int fd, const char *path,
|
||||||
|
#if UTIMENSAT_TIMESPEC_POINTER
|
||||||
|
const struct timespec *ts,
|
||||||
|
#else
|
||||||
|
const struct timespec ts[2],
|
||||||
|
#endif
|
||||||
|
int flag)
|
||||||
{
|
{
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -257,7 +269,13 @@ ftruncate(int fd, off_t length)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
futimens(int fd, const struct timespec times[2])
|
futimens(int fd,
|
||||||
|
#if FUTIMENS_TIMESPEC_POINTER
|
||||||
|
const struct timespec *times
|
||||||
|
#else
|
||||||
|
const struct timespec times[2]
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -5,4 +5,11 @@ repository: https://github.com/bytecodealliance/wasm-micro-runtime.git
|
||||||
documentation: https://wamr.gitbook.io/
|
documentation: https://wamr.gitbook.io/
|
||||||
issues: https://github.com/bytecodealliance/wasm-micro-runtime/issues
|
issues: https://github.com/bytecodealliance/wasm-micro-runtime/issues
|
||||||
dependencies:
|
dependencies:
|
||||||
idf: ">=4.4"
|
idf: ">=4.4"
|
||||||
|
targets:
|
||||||
|
- esp32
|
||||||
|
- esp32s3
|
||||||
|
- esp32c3
|
||||||
|
- esp32c6
|
||||||
|
examples:
|
||||||
|
- path: product-mini/platforms/esp-idf
|
|
@ -1,7 +1,7 @@
|
||||||
## IDF Component Manager Manifest File
|
## IDF Component Manager Manifest File
|
||||||
dependencies:
|
dependencies:
|
||||||
wasm-micro-runtime:
|
wasm-micro-runtime:
|
||||||
version: ">=2.0"
|
version: "^2"
|
||||||
override_path: "../../../.."
|
override_path: "../../../.."
|
||||||
idf:
|
idf:
|
||||||
version: ">=4.4"
|
version: ">=4.4"
|
Loading…
Reference in New Issue
Block a user