Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
032a3f2
[bsp][rt-spark] Update README.md
supperthomas Jul 10, 2023
2db4130
[ci][action] add the repo check for self-use
supperthomas Jul 11, 2023
fefffcf
[bsp][stm32] add B-U585I-IOT02A BSP (#7778)
Zheng-Bicheng Jul 11, 2023
6a9973c
[bsp][Infineon] Add I2C4 config for psoc6-evaluationkit
xusiwei Jul 7, 2023
259431a
[SAL/SOCKET]修复在 RT_DEBUG 开启后,调用 closesocket 接口触发断言的 BUG
SeaDog10 Jul 7, 2023
2f5e4ac
【dd2.0】Support the Core API for dd2.0 (#7791)
ErikChanHub Jul 13, 2023
3506268
[libcpu]fix RT_ASSERT undefine (#7816)
supperthomas Jul 14, 2023
0ebec47
[components][i2c] 优化 controt 接口格式,增加可用命令 (#7806)
sp-cai Jul 14, 2023
2741bec
[libcpu][cortex-a]modified start_gcc.S (#7810)
lepustse Jul 14, 2023
b424169
AArch64: fixup fpu storage's size in stack and append Q16 ~ Q31 (#7815)
GuEe-GUI Jul 15, 2023
0eb75ce
[time]时钟框架重构 (#7794)
xqyjlj Jul 17, 2023
8f16452
[libcpu][arc]修复arc架构线程切换bug (#7825)
yby-oy Jul 17, 2023
c7d1a0f
[add] add msp432e401y-LaunchPad BSP v0.1
yby-oy Jul 16, 2023
2dbf9ac
[bsp][Infineon]fix i2c init error (#7817)
Rbb666 Jul 18, 2023
c732cc0
[github] Add the code_owner review quest
supperthomas Jul 18, 2023
58e0ddf
[component/lwp] support more feature of signal from IEEE Std 1003.1-2…
polarvid Jul 19, 2023
a07fda3
[bsp][stm32][airm2m]<pin>更新pin num命令 (#7390)
HelloByeAll Jul 19, 2023
0b966bf
[components][net][sal][socket] Fix duplicate free on allocated buffer
helloeagleyang Jul 14, 2023
5f0328e
✨ feat(ktime): add RT_USING_KTIME to kconfig build
xqyjlj Jul 20, 2023
f206338
[github] coder reviewer change
supperthomas Jul 20, 2023
c985f31
overflow is invalid in oneshot mode
martin-calvin Jul 18, 2023
f52095d
[libc][time] cleanup code
mysterywolf Jul 21, 2023
52d3637
[smart] fix possible memory leak (#7832)
polarvid Jul 22, 2023
244b903
[debug] 整理debug宏并增加RT_DEBUGING_CONTEXT (#7805)
mysterywolf Jul 22, 2023
aee1bd5
clean up rtthread.h (#7843)
mysterywolf Jul 22, 2023
5b171fb
[ci] add paths-ignore for format and static check (#7845)
mysterywolf Jul 23, 2023
fc28bae
[ci] update code owner (#7846)
mysterywolf Jul 23, 2023
befa951
modify some function prototypes of the dfs_file_ops structure and the…
xiao-mang Jul 24, 2023
86f1273
[tools][mdk] fix .uvoptx/uvopt project name
mysterywolf Jul 23, 2023
6523827
[tools] --project-name= can use name with space
mysterywolf Jul 23, 2023
27143f4
[doc][env] update env document
mysterywolf Jul 23, 2023
7e5620e
[smart] 修复用户态 mq_receive 不能阻塞 (#7836)
zhkag Jul 24, 2023
0a6aaf1
[bsp][esp32-c3] Realization of scons compilation of ESP32-C3 | 实现ESP3…
WCX1024979076 Jul 25, 2023
acfa74f
[libcpu/arm] fix race condition with ldrex,strex (#7842)
polarvid Jul 25, 2023
14d1540
更新瑞萨相关 bsp (#7858)
Guozhanxin Jul 25, 2023
ff0c148
AArch64: fixup HW atomic_t ops type from dword to qword (#7861)
GuEe-GUI Jul 25, 2023
ef91876
[smart] fix the setup of fake lwp in sys_execve (#7855)
polarvid Jul 25, 2023
6f119d4
AArch64: support public linker scripts (#7831)
GuEe-GUI Jul 25, 2023
93cd53d
[bsp][wch] fix UART IRQ declarion
bxhsiman Jul 25, 2023
f01fe4a
[docs][qemu] update quick_start_qemu_windows
mysterywolf Jul 26, 2023
b0911eb
[codeowners] add /documentation owners
mysterywolf Jul 26, 2023
9cffb70
[doc][qemu] update qemu for windows doc
mysterywolf Jul 26, 2023
c1cc133
[debug] fix the error when disable RT_USING_DEBUG
mysterywolf Jul 27, 2023
0eaa757
【dd2.0】move the core header files to include/drivers/core
ErikChanHub Jul 25, 2023
d23dd56
🐞 fix(ktime): fix wrong boottime
xqyjlj Jul 26, 2023
0b93001
🐞 fix(rtc/soft_rtc): fix wrong time
xqyjlj Jul 26, 2023
2b80fd3
🐞 fix(ktime/hrtimer): fix ctrl c
xqyjlj Jul 26, 2023
db24f18
📃 docs(ktime/readme): add readme
xqyjlj Jul 27, 2023
fb1faa0
[dfs v2]fix fcntl(F_SETFL) bug,and modify the error code when opening…
Tennn11 Jul 27, 2023
43b451b
[syscall][socket]fix socket addr bug (#7876)
Tennn11 Jul 27, 2023
307e9e5
Add the system call eventfd (#7835)
zmq810150896 Jul 27, 2023
4e0225a
[debug] use LOG_D instead RT_DEBUG_LOG
mysterywolf Jul 28, 2023
32e50cd
[drivers/core] revise the macros of header files
mysterywolf Jul 28, 2023
bfe9fd3
[drivers/ipc] fix the recursive including if legacy enabled
mysterywolf Jul 28, 2023
f258f74
[ci][kconfig][qemu] guard the legacy option
mysterywolf Jul 28, 2023
e44761c
[.github] add CONTRIBUTING.md
mysterywolf Jul 29, 2023
9f88f10
[docs] add env vscode document
mysterywolf Jul 30, 2023
5c4b44f
[bsp][pico]add: drv_spi and drv_i2c
Solonix-Chu Jul 30, 2023
215c6c0
[components/ctime] fix the free of rt_work (#7882)
polarvid Jul 31, 2023
51100ae
[libcpu/Kconfig] add ARCH_ARM_CORTEX_M23 define (#7895)
Guozhanxin Jul 31, 2023
e00e2d5
[components][fal] remove some assert.
armink Jul 30, 2023
43e0423
[components][utilities][var_export] update the var export auto init t…
armink Jul 30, 2023
a98b117
[sdio]开启emmc内部cache加快传输 (#7896)
heyuanjie87 Aug 1, 2023
3f0a5e7
Add the system call epoll (#7893)
zmq810150896 Aug 1, 2023
f5fe1a5
[RTduino][stm32-f401nucleo] 支持对接引脚的功能切换 (#7901)
liYony Aug 2, 2023
d3417aa
Prepare some api for DM (#7894)
GuEe-GUI Aug 2, 2023
31fec3b
[bsp] phytium e2000 update (#7900)
messigogogo Aug 2, 2023
69d9431
update dfs (#7887)
geniusgogo Aug 2, 2023
a6fcb4f
[bsp][renesas]update ra6m3&4 readme
Rbb666 Aug 2, 2023
d5c9dc0
[lwp] 修复错误码误用 (#7906)
zhkag Aug 3, 2023
b383124
[DFS_V1] 修复close失败后不释放fd导致内存被永久占用且无法释放 (#7907)
WKJay Aug 3, 2023
e5c8dd3
[components][drivers][sdio] Fix minor issue in sdio driver (#7904)
helloeagleyang Aug 3, 2023
325c3d2
[smart] Fix bugs on lwp kill (#7892)
polarvid Aug 3, 2023
2aa1056
Add fops for dfs_v2 and rt_set_errno (#7910)
zmq810150896 Aug 3, 2023
a2fae26
[kernel][mutex] 去除mutex中的递归
yby-oy Jul 24, 2023
0fb393e
[bsp][stm32][drv_spi.c] remove meaningless settings
mysterywolf Aug 4, 2023
3c289c2
[bsp][Phytium] qspi debug (#7914)
messigogogo Aug 5, 2023
8dfb3d1
[ci] add the manual trigger;add the fail bsp check (#7919)
supperthomas Aug 5, 2023
94eb8c2
[rtduino][stm32-f401] support timer9 as tone timer
mysterywolf Aug 5, 2023
1c03d59
[rtduino][stm32-l476] add LED_BUILTIN
mysterywolf Aug 5, 2023
6648419
[bsp][stm32h750_artpi] use gnu99
vacabun Aug 6, 2023
7e7b303
fix some variables not used warnings when build. (#7925)
newflydd Aug 7, 2023
4d20416
update components & lwp. (#7888)
geniusgogo Aug 7, 2023
b3f7591
avoid warning message of sequence-point
KunYi Aug 7, 2023
92859cc
[libc][time] silence the incorrect type warning
mysterywolf Aug 7, 2023
cb810df
rt_hw_cpu_reset: remove all other rt_weak
mysterywolf Aug 7, 2023
c6a2f5b
rt_hw_cpu_shutdown: implement default weak function
mysterywolf Aug 7, 2023
5ac509b
[libcpu][risc-v][common] Avoid using t0 before being saved
helloeagleyang Aug 9, 2023
9968f84
[stm32][pandora] fix LCD init ahead PWM
caoxin1206 Aug 9, 2023
f307a2c
[SAL] fix the IPv4&v6 compiling issue. (#7938)
BernardXiong Aug 10, 2023
f53fc15
[bsp/ifx] add cyw43012 wifi module
Guozhanxin Aug 9, 2023
5308cc4
[libcpu][risc-v][common] Fix application crash on risc-v soc if FPU is
helloeagleyang Aug 11, 2023
deb0b03
fix dfs_file_open error code (#7942)
geniusgogo Aug 12, 2023
1b5ed06
fix mkdir error code. (#7944)
geniusgogo Aug 12, 2023
a6959a9
fix lwp_free tty switch to foreground error (#7945)
geniusgogo Aug 12, 2023
432c2f3
[libc][timezone] implement lightweith timezone configuration
mysterywolf Aug 12, 2023
23eb631
[device][rtc] support output UTC minutes level
mysterywolf Aug 12, 2023
8061503
[libc][time] pre-support fully version timezone and daylight saving time
mysterywolf Aug 12, 2023
83a2863
[bsp][stm32][rt-spark] 更新 cubemx ports
zhkag Aug 10, 2023
0bd9329
[bsp][hpmicro] Update libraries, add new BSPs
helloeagleyang Aug 15, 2023
93388f8
fix msh exec permission denied (#7943)
geniusgogo Aug 16, 2023
aa300c4
🎈 perf(ktime): perf hrtimer, del wrong function (#7880)
xqyjlj Aug 16, 2023
d862816
[components/mm] add unmap page API (#7834)
polarvid Aug 16, 2023
b08d867
[libc][posix/io/stdio] rename libc.c as posix/stdio.c
mysterywolf Aug 7, 2023
2917180
[libc][newlib] __sdidinit is obselete
FragrantRye Aug 16, 2023
6dd3802
[components][drivers][can]Init can tx completion flag before tx
cmbjxxiao Jun 7, 2023
166c83f
[DFS_V1]修复 dfs_file_stat 一个 FATFS 根目录会失败的问题 (#7940)
WKJay Aug 20, 2023
348c1fc
fix list_page (#7968)
xiao-mang Aug 21, 2023
5b36522
[bsp][gd32]添加 立创开发板 GD32F470 的 SDRAM驱动,从STM32的drv_sdram.c修改而来
yuanzihao Aug 20, 2023
290678b
[tools][gcc] remove legacy functions
mysterywolf Aug 20, 2023
30c793f
[tools] add GetGCCLikePLATFORM
mysterywolf Aug 20, 2023
05c9a18
[ci] Add more config for future use
supperthomas Aug 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 33 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# CODEOWNERS for autoreview assigning in github

# https://help.github.com/en/articles/about-code-owners#codeowners-syntax

/.github @supperthomas
/.gitee @supperthomas
/.hooks @supperthomas
/.devcontainer @supperthomas
/bsp/ESP32_C3 @supperthomas
/bsp/nr5x/ @supperthomas
/bsp/stm32/stm32l496-st-nucleo @supperthomas
/bsp/stm32/stm32f407-rt-spark @supperthomas
/bsp/stm32/stm32h743-openmv-h7plus @supperthomas
/bsp/stm32/stm32l4r9-st-sensortile-box/ @supperthomas
/bsp/stm32/stm32l475-atk-pandora/ @mysterywolf
/bsp/stm32/stm32f401-st-nucleo/ @mysterywolf
/bsp/stm32/stm32f411-st-nucleo/ @mysterywolf
/bsp/stm32/stm32f412-st-nucleo/ @mysterywolf
/bsp/stm32/stm32l476-st-nucleo/ @mysterywolf
/bsp/maxim @supperthomas

*arduino* @mysterywolf

/components/libc/ @mysterywolf
/components/dfs/dfs_v2/ @BernardXiong
/components/lwp/ @BernardXiong
/components/mm/ @BernardXiong
/components/drivers/sensor/ @mysterywolf
/components/drivers/tty/ @BernardXiong

/documentation @mysterywolf @Cathy-lulu
/examples @Guozhanxin

2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ The following content must not be changed in the submitted PR message. Otherwise
- [ ] 所有变更均有原因及合理的,并且不会影响到其他软件组件代码或BSP All modifications are justified and not affect other components or BSP
- [ ] 对难懂代码均提供对应的注释 I've commented appropriately where code is tricky
- [ ] 代码是高质量的 Code in this PR is of high quality
- [ ] 已经使用[formatting](https://github.com/mysterywolf/formatting)等源码格式化工具确保格式符合[RT-Thread代码规范](https://github.com/RT-Thread/rt-thread/blob/master/documentation/contribution_guide/coding_style_cn.md) This PR complies with [RT-Thread code specification](https://github.com/RT-Thread/rt-thread/blob/master/documentation/contribution_guide/coding_style_en.md)
- [ ] 已经使用[formatting](https://github.com/mysterywolf/formatting) 等源码格式化工具确保格式符合[RT-Thread代码规范](https://github.com/RT-Thread/rt-thread/blob/master/documentation/contribution_guide/coding_style_cn.md) This PR complies with [RT-Thread code specification](https://github.com/RT-Thread/rt-thread/blob/master/documentation/contribution_guide/coding_style_en.md)
24 changes: 21 additions & 3 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ jobs:
- "stm32/stm32mp157a-st-discovery"
- "stm32/stm32mp157a-st-ev1"
- "stm32/stm32u575-st-nucleo"
- "stm32/stm32u585-iot02a"
- "stm32/stm32wb55-st-nucleo"
- RTT_BSP: "nxp_renesas"
RTT_TOOL_CHAIN: "sourcery-arm"
Expand All @@ -183,12 +184,15 @@ jobs:
- "imxrt/imxrt1052-seeed-ArchMix"
- "imxrt/imxrt1060-nxp-evk"
- "imxrt/imxrt1064-nxp-evk"
- "imxrt/imxrt1021-nxp-evk"
- "frdm-k64f"
- "lpc176x"
- "xplorer4330/M4"
#- "lpc43xx/M4"
- "renesas/ra6m3-ek"
- "renesas/ebf_qi_min_6m5"
- "renesas/ra6m4-cpk"
- "renesas/ra6m4-iot"
- "renesas/ra6m3-ek"
- "renesas/ra6m3-hmi-board"
- "renesas/ra4m2-eco"
- "renesas/ra2l1-cpk"
Expand Down Expand Up @@ -261,12 +265,13 @@ jobs:
- "lm4f232"
- "tm4c123bsp"
- "tm4c129x"
- "msp432e401y-LaunchPad"
- "microchip/samc21"
- "microchip/same54"
- "microchip/same70"
- "smartfusion2"
- "maxim/max32660-evsys"
- "efm32"
# - "efm32"
- RTT_BSP: "mips"
RTT_TOOL_CHAIN: "sourcery-mips"
SUB_RTT_BSP:
Expand All @@ -280,6 +285,7 @@ jobs:
- "raspberry-pi/raspi3-64"
- "raspberry-pi/raspi4-64"
- "rockchip/rk3568"
- "phytium/aarch64"
- RTT_BSP: "riscv-none"
RTT_TOOL_CHAIN: "sourcery-riscv-none-embed"
SUB_RTT_BSP:
Expand All @@ -300,7 +306,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
Expand Down Expand Up @@ -373,6 +382,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: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/action_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
test:
runs-on: ubuntu-latest
name: Tools
if: github.repository_owner == 'RT-Thread'
strategy:
fail-fast: false
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/action_utest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
test:
runs-on: ubuntu-latest
name: ${{ matrix.legs.UTEST }}
if: github.repository_owner == 'RT-Thread'
strategy:
fail-fast: false
matrix:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/file_check.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
name: Check File Format and License

on: [pull_request]
on:
pull_request:
branches:
- master
paths-ignore:
- documentation/**
- '**/README.md'
- '**/README_zh.md'

jobs:
scancode_job:
runs-on: ubuntu-latest
name: Scan code format and license
if: github.repository_owner == 'RT-Thread'
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down
52 changes: 50 additions & 2 deletions .github/workflows/manual_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,32 @@ on:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
type: string
default: 'CONFIG_BSP_USING_GPIO'
default: 'CONFIG_BSP_USING_GPIO=y'
bsp_config1:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
type: string
default: 'CONFIG_BSP_USING_GPIO=y'
bsp_config2:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
type: string
default: 'CONFIG_BSP_USING_GPIO=y'
bsp_config3:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
type: string
default: 'CONFIG_BSP_USING_GPIO=y'
bsp_config4:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
type: string
default: 'CONFIG_BSP_USING_GPIO=y'
bsp_config5:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
type: string
default: 'CONFIG_BSP_USING_GPIO=y'
dist_flag:
description: 'True to dist all bsp, False not dist'
required: true
Expand Down Expand Up @@ -137,8 +162,31 @@ jobs:
source ~/.env/env.sh
echo $RTT_BSP
ls bsp/$RTT_BSP/Kconfig && scons -C bsp/$RTT_BSP --pyconfig-silent
sed -i "s/# ${{ github.event.inputs.bsp_config }} is not set/${{ github.event.inputs.bsp_config }}=y/g" bsp/$RTT_BSP/.config
config=${{ github.event.inputs.bsp_config}}
preconfig=${config%%=*}
echo "$preconfig"
sed -i "/$preconfig/ s/.*/$config/" .config
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
config=${{ github.event.inputs.bsp_config1}}
preconfig=${config%%=*}
echo "$preconfig"
sed -i "/$preconfig/ s/.*/$config/" .config
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
config=${{ github.event.inputs.bsp_config2}}
preconfig=${config%%=*}
echo "$preconfig"
sed -i "/$preconfig/ s/.*/$config/" .config
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
config=${{ github.event.inputs.bsp_config3}}
preconfig=${config%%=*}
echo "$preconfig"
sed -i "/$preconfig/ s/.*/$config/" .config
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
cat .config
scons -C bsp/$RTT_BSP -j$(nproc)
mkdir -p ${{ github.workspace }}/$RTT_BSP
cp -r bsp/$RTT_BSP ${{ github.workspace }}/$RTT_BSP/
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/manual_trigger_scons_STM32_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
name: manual_scons_dist_STM32_all

on:
# Runs at 16:00 UTC (BeiJing 00:00) on the 3st of every month
schedule:
- cron: '0 16 2 * *'
workflow_dispatch:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs
inputs:
Expand Down
36 changes: 25 additions & 11 deletions .github/workflows/manual_trigger_scons_except_STM32_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ name: manual_scons_dist_except_STM32_all


on:
# Runs at 16:00 UTC (BeiJing 00:00) on the 3st of every month
schedule:
- cron: '0 16 3 * *'
workflow_dispatch:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs
inputs:
Expand Down Expand Up @@ -86,7 +89,7 @@ jobs:
#- {RTT_BSP_NAME: "core-v-mcu_core-v-cv32e40p", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "core-v-mcu/core-v-cv32e40p"} #特殊toolchain,不支持
- {RTT_BSP_NAME: "dm365", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "dm365"}
- {RTT_BSP_NAME: "efm32", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "efm32"}
#- {RTT_BSP_NAME: "ESP32_C3", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "ESP32_C3"} #bsp还不完善,toolchain不支持
- {RTT_BSP_NAME: "ESP32_C3", RTT_TOOL_CHAIN: "sourcery-riscv32-esp32", RTT_BSP: "ESP32_C3"}
#- {RTT_BSP_NAME: "essemi_es32f0654", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "essemi/es32f0654"} #GCC link文件没支持好
#- {RTT_BSP_NAME: "essemi_es32f365x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "essemi/es32f365x"} #GCC link文件没支持好
- {RTT_BSP_NAME: "essemi_es32f369x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "essemi/es32f369x"}
Expand Down Expand Up @@ -132,7 +135,7 @@ jobs:
#- {RTT_BSP_NAME: "imx_imx6ull-smart", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imx/imx6ull-smart"} # toolchain还没支持
- {RTT_BSP_NAME: "imx6sx_cortex-a9", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imx6sx/cortex-a9"}
- {RTT_BSP_NAME: "imx6ul", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imx6ul"}
#- {RTT_BSP_NAME: "imxrt_imxrt1021-nxp-evk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imxrt/imxrt1021-nxp-evk"} #GCC编译有问题
- {RTT_BSP_NAME: "imxrt_imxrt1021-nxp-evk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imxrt/imxrt1021-nxp-evk"}
- {RTT_BSP_NAME: "imxrt_imxrt1052-atk-commander", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imxrt/imxrt1052-atk-commander"}
- {RTT_BSP_NAME: "imxrt_imxrt1052-fire-pro", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imxrt/imxrt1052-fire-pro"}
- {RTT_BSP_NAME: "imxrt_imxrt1052-nxp-evk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imxrt/imxrt1052-nxp-evk"}
Expand Down Expand Up @@ -184,10 +187,10 @@ jobs:
#- {RTT_BSP_NAME: "mini4020", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mini4020"} #toolchain不支持
- {RTT_BSP_NAME: "mipssim", RTT_TOOL_CHAIN: "sourcery-mips", RTT_BSP: "mipssim"}
- {RTT_BSP_NAME: "mm32_mm32f3270-100ask-pitaya", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32/mm32f3270-100ask-pitaya"}
#- {RTT_BSP_NAME: "mm32f103x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32f103x"} #编译问题
- {RTT_BSP_NAME: "mm32f103x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32f103x"}
#- {RTT_BSP_NAME: "mm32f327x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32f327x"} #编译问题
#- {RTT_BSP_NAME: "mm32l07x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32l07x"} #编译问题
#- {RTT_BSP_NAME: "mm32l3xx", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32l3xx"} #编译问题
- {RTT_BSP_NAME: "mm32l3xx", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32l3xx"}
- {RTT_BSP_NAME: "n32_n32g43xcl-stb", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "n32/n32g43xcl-stb"}
- {RTT_BSP_NAME: "n32_n32g457qel-stb", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "n32/n32g457qel-stb"}
- {RTT_BSP_NAME: "n32_n32g45xcl-stb", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "n32/n32g45xcl-stb"}
Expand All @@ -210,21 +213,21 @@ jobs:
- {RTT_BSP_NAME: "nuclei_gd32vf103_rvstar", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "nuclei/gd32vf103_rvstar"}
#- {RTT_BSP_NAME: "nuclei_nuclei_fpga_eval", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "nuclei/nuclei_fpga_eval"} #riscv-nuclei-elf-gcc toolchain不支持
#- {RTT_BSP_NAME: "nv32f100x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "nv32f100x"} #编译错误
#- {RTT_BSP_NAME: "phytium_aarch32", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "phytium/aarch32"} #编译错误
# - {RTT_BSP_NAME: "phytium_aarch64", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "phytium/aarch64"} #编译错误
# - {RTT_BSP_NAME: "phytium_aarch32", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "phytium/aarch32"}
- {RTT_BSP_NAME: "phytium_aarch64", RTT_TOOL_CHAIN: "sourcery-aarch64", RTT_BSP: "phytium/aarch64"}
#- {RTT_BSP_NAME: "pic32ethernet", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "pic32ethernet"} #编译错误
- {RTT_BSP_NAME: "qemu-vexpress-a9", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "qemu-vexpress-a9"}
- {RTT_BSP_NAME: "qemu-virt64-aarch64", RTT_TOOL_CHAIN: "sourcery-aarch64", RTT_BSP: "qemu-virt64-aarch64"}
# - {RTT_BSP_NAME: "qemu-virt64-riscv", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "qemu-virt64-riscv"} #riscv64-unknown-elf-gcc toolchain不支持
- {RTT_BSP_NAME: "qemu-virt64-riscv", RTT_TOOL_CHAIN: "sourcery-riscv64-unknown-elf", RTT_BSP: "qemu-virt64-riscv"} #riscv64-unknown-elf-gcc toolchain不支持
# - {RTT_BSP_NAME: "raspberry-pi_raspi2", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pi/raspi2"} #编译错误,toolchain不对
- {RTT_BSP_NAME: "raspberry-pi_raspi3-32", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pi/raspi3-32"}
#- {RTT_BSP_NAME: "raspberry-pi_raspi3-64", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pi/raspi3-64"} #TOOLCHAIN未支持
- {RTT_BSP_NAME: "raspberry-pi_raspi3-64", RTT_TOOL_CHAIN: "aarch64", RTT_BSP: "raspberry-pi/raspi3-64"}
- {RTT_BSP_NAME: "raspberry-pi_raspi4-32", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pi/raspi4-32"}
#- {RTT_BSP_NAME: "raspberry-pi_raspi4-64", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pi/raspi4-64"} #toolchain未支持
- {RTT_BSP_NAME: "raspberry-pi_raspi4-64", RTT_TOOL_CHAIN: "aarch64", RTT_BSP: "raspberry-pi/raspi4-64"}
- {RTT_BSP_NAME: "raspberry-pico", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pico"}
- {RTT_BSP_NAME: "renesas_ebf_qi_min_6m5", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ebf_qi_min_6m5"}
#- {RTT_BSP_NAME: "renesas_ra2l1-cpk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra2l1-cpk"} #编译错误
#- {RTT_BSP_NAME: "renesas_ra4m2-eco", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra4m2-eco"} #编译错误
- {RTT_BSP_NAME: "renesas_ra2l1-cpk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra2l1-cpk"} #编译错误
- {RTT_BSP_NAME: "renesas_ra4m2-eco", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra4m2-eco"} #编译错误
- {RTT_BSP_NAME: "renesas_ra6m3-ek", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra6m3-ek"}
- {RTT_BSP_NAME: "renesas_ra6m3-hmi-board", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra6m3-hmi-board"}
- {RTT_BSP_NAME: "renesas_ra6m4-cpk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra6m4-cpk"}
Expand Down Expand Up @@ -336,6 +339,15 @@ jobs:
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'gcc' && success() }}
run: |
sudo apt-get -qq install libsdl2-dev

- 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: Bsp Scons Compile
if: ${{ success() }}
Expand All @@ -347,6 +359,8 @@ jobs:
source ~/.env/env.sh
echo $RTT_BSP
ls bsp/$RTT_BSP/Kconfig && scons -C bsp/$RTT_BSP --pyconfig-silent
sed -i "s/# ${{ github.event.inputs.bsp_config }} is not set/${{ github.event.inputs.bsp_config }}=y/g" bsp/$RTT_BSP/.config
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
scons -C bsp/$RTT_BSP -j$(nproc)
mkdir -p ${{ github.workspace }}/$RTT_BSP
Expand Down
Loading