mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
[bsp][esp32-c3] Realization of scons compilation of ESP32-C3 | 实现ESP32-C3的scons编译 (#7821)
Co-authored-by: Supper Thomas <78900636@qq.com>
This commit is contained in:
@@ -303,7 +303,10 @@ jobs:
|
||||
RTT_TOOL_CHAIN: "gcc"
|
||||
SUB_RTT_BSP:
|
||||
- "simulator"
|
||||
|
||||
- RTT_BSP: "ESP32C3"
|
||||
RTT_TOOL_CHAIN: "sourcery-riscv32-esp32"
|
||||
SUB_RTT_BSP:
|
||||
- "ESP32_C3"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
@@ -376,6 +379,15 @@ jobs:
|
||||
/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin/riscv-none-embed-gcc --version
|
||||
echo "RTT_EXEC_PATH=/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin" >> $GITHUB_ENV
|
||||
|
||||
- name: Install riscv32-esp-elf ToolChains
|
||||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-riscv32-esp32' && success() }}
|
||||
run: |
|
||||
wget -q https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1-RC1/riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz
|
||||
sudo tar xf riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz -C /opt
|
||||
/opt/riscv32-esp-elf/bin/riscv32-esp-elf-gcc --version
|
||||
/usr/bin/pip install esptool
|
||||
echo "RTT_EXEC_PATH=/opt/riscv32-esp-elf/bin" >> $GITHUB_ENV
|
||||
|
||||
- name: Install Simulator Tools
|
||||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'gcc' && success() }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user