mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
29d83224a8
This PR adds support for ESP32 C6, which has been mentioned in #3208.
38 lines
746 B
Bash
Executable File
38 lines
746 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Copyright (C) 2019-21 Intel Corporation and others. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
ESP32_TARGET="esp32"
|
|
ESP32C3_TARGET="esp32c3"
|
|
ESP32S3_TARGET="esp32s3"
|
|
ESP32C6_TARGET="esp32c6"
|
|
|
|
usage ()
|
|
{
|
|
echo "USAGE:"
|
|
echo "$0 $ESP32_TARGET|$ESP32C3_TARGET|$ESP32S3_TARGET"
|
|
echo "Example:"
|
|
echo " $0 $ESP32_TARGET"
|
|
echo " $0 $ESP32C3_TARGET"
|
|
echo " $0 $ESP32S3_TARGET"
|
|
echo " $0 $ESP32C6_TARGET"
|
|
exit 1
|
|
}
|
|
|
|
if [ $# != 1 ] ; then
|
|
usage
|
|
fi
|
|
|
|
TARGET=$1
|
|
|
|
if [[ -z "${WAMR_PATH}" ]]; then
|
|
export WAMR_PATH=$PWD/../../..
|
|
fi
|
|
|
|
rm -rf build
|
|
idf.py set-target $TARGET
|
|
idf.py build
|
|
idf.py flash
|
|
|