Add wamr to esp-idf components registry (#3287)

This PR is for the main branch, but only the released branch will be pushed
into Espressif component registry.

See also similar fixes in branch release/1.3.x:
https://github.com/bytecodealliance/wasm-micro-runtime/pull/3264
https://github.com/bytecodealliance/wasm-micro-runtime/pull/3288
This commit is contained in:
dongheng
2024-04-08 12:34:08 +08:00
committed by GitHub
parent ef3babc658
commit dacb3c4105
7 changed files with 39 additions and 10 deletions

View File

@ -6,7 +6,4 @@ cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set (COMPONENTS ${IDF_TARGET} main freertos esptool_py wamr)
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{WAMR_PATH}/build-scripts/esp-idf")
project(wamr-simple)

View File

@ -2,5 +2,4 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
idf_component_register(SRCS "main.c"
INCLUDE_DIRS "."
REQUIRES wamr)
INCLUDE_DIRS ".")

View File

@ -0,0 +1,7 @@
## IDF Component Manager Manifest File
dependencies:
wasm-micro-runtime:
version: ">=2.0"
override_path: "../../../.."
idf:
version: ">=4.4"

View File

@ -12,11 +12,7 @@
#include "esp_log.h"
#ifdef CONFIG_IDF_TARGET_ESP32S3
#define IWASM_MAIN_STACK_SIZE 5120
#else
#define IWASM_MAIN_STACK_SIZE 4096
#endif
#define LOG_TAG "wamr"