Add esp32c6 support (#3234)

This PR adds support for ESP32 C6, which has been mentioned in #3208.
This commit is contained in:
Tao Xiong 2024-03-19 01:15:46 +01:00 committed by GitHub
parent b11a1d157d
commit 29d83224a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Set WAMR's build options # Set WAMR's build options
if("${IDF_TARGET}" STREQUAL "esp32c3") if("${IDF_TARGET}" STREQUAL "esp32c3" OR "${IDF_TARGET}" STREQUAL "esp32c6")
set(WAMR_BUILD_TARGET "RISCV32") set(WAMR_BUILD_TARGET "RISCV32")
else() else()
set(WAMR_BUILD_TARGET "XTENSA") set(WAMR_BUILD_TARGET "XTENSA")

View File

@ -6,6 +6,7 @@
ESP32_TARGET="esp32" ESP32_TARGET="esp32"
ESP32C3_TARGET="esp32c3" ESP32C3_TARGET="esp32c3"
ESP32S3_TARGET="esp32s3" ESP32S3_TARGET="esp32s3"
ESP32C6_TARGET="esp32c6"
usage () usage ()
{ {
@ -15,6 +16,7 @@ usage ()
echo " $0 $ESP32_TARGET" echo " $0 $ESP32_TARGET"
echo " $0 $ESP32C3_TARGET" echo " $0 $ESP32C3_TARGET"
echo " $0 $ESP32S3_TARGET" echo " $0 $ESP32S3_TARGET"
echo " $0 $ESP32C6_TARGET"
exit 1 exit 1
} }