Skip to content

Commit dacbb70

Browse files
authored
Merge pull request #6 from jianbojason/master
release rt-thread v4.1.0
2 parents ca195bb + 27740d4 commit dacbb70

File tree

20,263 files changed

+11824011
-181954
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

20,263 files changed

+11824011
-181954
lines changed

.gitee/ISSUE_TEMPLATE.zh-TW.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.gitee/PULL_REQUEST_TEMPLATE.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ As part of this pull request, I've considered the following:
2727
- [ ] All modifications to BSP are justified and do not affect other components or BSPs.
2828
- [ ] I've commented appropriately where code is tricky.
2929
- [ ] Code in this PR is of high quality.
30+
- [ ] This PR complies with [RT-Thread code specification](../documentation/contribution_guide/coding_style_en.txt)

.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@
2727
- [ ] 所有变更均有原因及合理的,并且不会影响到其他软件组件代码或
2828
- [ ] 对难懂代码均提供对应的注释
2929
- [ ] 本拉取/合并请求代码是高质量的
30+
- [ ] 本拉取/合并符合[RT-Thread代码规范](../documentation/contribution_guide/coding_style_cn.md)

.gitee/PULL_REQUEST_TEMPLATE.zh-TW.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/ISSUE_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!--- 请清晰详细地描述你遇到的问题,描述问题时请给出芯片/BSP/工具链,RT-Thread版本,复现步骤及现象或者有条理地描述你的问题。在问题得到解决后,请及时关闭issue。欢迎到论坛提问:https://club.rt-thread.org/ -->
2+
3+
<!--- Please describe your problem clearly and in detail. When describing the problem, please use numbers or bullet points to describe your problem coherently. After the problem is resolved, please close the issue in time. Welcome to the forum to ask questions: https://club.rt-thread.io/ -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ The following content must not be changed in the submitted PR message. Otherwise
3131
- [ ] 所有变更均有原因及合理的,并且不会影响到其他软件组件代码或BSP All modifications are justified and not affect other components or BSP
3232
- [ ] 对难懂代码均提供对应的注释 I've commented appropriately where code is tricky
3333
- [ ] 本拉取/合并请求代码是高质量的 Code in this PR is of high quality
34+
- [ ] 本拉取/合并使用[formatting](https://github.com/mysterywolf/formatting)等源码格式化工具确保格式符合[RT-Thread代码规范](../documentation/contribution_guide/coding_style_cn.md) This PR complies with [RT-Thread code specification](../documentation/contribution_guide/coding_style_en.txt)

.github/workflows/action.yml

Lines changed: 130 additions & 61 deletions
Large diffs are not rendered by default.

.github/workflows/action_tools.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: ToolsCI
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
# Runs at 16:00 UTC (BeiJing 00:00) on the 1st of every month
7+
schedule:
8+
- cron: '0 16 1 * *'
9+
push:
10+
branches:
11+
- master
12+
paths-ignore:
13+
- documentation/**
14+
- '**/README.md'
15+
- '**/README_zh.md'
16+
- '**/*.c'
17+
- '**/*.h'
18+
- '**/*.cpp'
19+
pull_request:
20+
branches:
21+
- master
22+
paths-ignore:
23+
- documentation/**
24+
- '**/README.md'
25+
- '**/README_zh.md'
26+
- '**/*.c'
27+
- '**/*.h'
28+
- '**/*.cpp'
29+
30+
jobs:
31+
test:
32+
runs-on: ubuntu-latest
33+
name: Tools
34+
strategy:
35+
fail-fast: false
36+
env:
37+
TEST_BSP_ROOT: bsp/stm32/stm32f407-atk-explorer
38+
steps:
39+
- uses: actions/checkout@v1
40+
41+
- name: Install Tools
42+
shell: bash
43+
run: |
44+
sudo apt-get update
45+
sudo apt-get -yqq install scons
46+
47+
- name: Install Arm ToolChains
48+
if: ${{ success() }}
49+
shell: bash
50+
run: |
51+
wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.3/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
52+
sudo tar xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt
53+
/opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version
54+
echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV
55+
56+
- name: Build Tools
57+
run: |
58+
scons --pyconfig-silent -C $TEST_BSP_ROOT
59+
scons -j$(nproc) -C $TEST_BSP_ROOT
60+
61+
- name: Project generate Tools
62+
if: ${{ success() }}
63+
run: |
64+
echo "Test to generate mdk project"
65+
scons --target=mdk -s -C $TEST_BSP_ROOT
66+
scons --target=mdk4 -s -C $TEST_BSP_ROOT
67+
scons --target=mdk5 -s -C $TEST_BSP_ROOT
68+
echo "Test to generate iar project"
69+
scons --target=iar -s -C $TEST_BSP_ROOT
70+
echo "Test to generate eclipse project"
71+
scons --target=eclipse -s -C $TEST_BSP_ROOT
72+
echo "Test to generate cmake project"
73+
scons --target=cmake -s -C $TEST_BSP_ROOT
74+
echo "Test to generate makefile project"
75+
scons --target=makefile -s -C $TEST_BSP_ROOT
76+
77+
- name: Project dist Tools
78+
if: ${{ success() }}
79+
run: |
80+
echo "Test to dist project"
81+
scons --dist -C $TEST_BSP_ROOT
82+
scons --dist-ide -C $TEST_BSP_ROOT

.github/workflows/action_utest.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: AutoTestCI
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
# Runs at 16:00 UTC (BeiJing 00:00) on the 1st of every month
7+
schedule:
8+
- cron: '0 16 1 * *'
9+
push:
10+
branches:
11+
- master
12+
paths-ignore:
13+
- documentation/**
14+
- '**/README.md'
15+
- '**/README_zh.md'
16+
pull_request:
17+
branches:
18+
- master
19+
paths-ignore:
20+
- documentation/**
21+
- '**/README.md'
22+
- '**/README_zh.md'
23+
24+
jobs:
25+
test:
26+
runs-on: ubuntu-latest
27+
name: ${{ matrix.legs.UTEST }}
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
legs:
32+
- {UTEST: "kernel/mem", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", CONFIG_FILE: "kernel/mem.conf", SD_FILE: "sd.bin"}
33+
- {UTEST: "kernel/ipc", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", CONFIG_FILE: "kernel/ipc.conf", SD_FILE: "sd.bin"}
34+
- {UTEST: "kernel/irq", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", CONFIG_FILE: "kernel/irq.conf", SD_FILE: "sd.bin"}
35+
- {UTEST: "kernel/timer", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", CONFIG_FILE: "kernel/timer.conf", SD_FILE: "sd.bin"}
36+
- {UTEST: "kernel/thread", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", CONFIG_FILE: "kernel/thread.conf", SD_FILE: "sd.bin"}
37+
- {UTEST: "components/utest", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", CONFIG_FILE: "utest_self/self.conf", SD_FILE: "sd.bin"}
38+
- {UTEST: "kernel/mem/riscv64", RTT_BSP: "bsp/qemu-riscv-virt64", QEMU_ARCH: "riscv64", QEMU_MACHINE: "virt", CONFIG_FILE: "kernel/mem.conf", SD_FILE: "None"}
39+
env:
40+
TEST_QEMU_ARCH: ${{ matrix.legs.QEMU_ARCH }}
41+
TEST_QEMU_MACHINE: ${{ matrix.legs.QEMU_MACHINE }}
42+
TEST_BSP_ROOT: ${{ matrix.legs.RTT_BSP }}
43+
TEST_CONFIG_FILE: ${{ matrix.legs.CONFIG_FILE }}
44+
TEST_SD_FILE: ${{ matrix.legs.SD_FILE }}
45+
steps:
46+
- uses: actions/checkout@v1
47+
48+
- name: Install Tools
49+
shell: bash
50+
run: |
51+
sudo apt-get update
52+
sudo apt-get -yqq install scons qemu-system git
53+
54+
- name: Install Arm ToolChains
55+
if: ${{ matrix.legs.QEMU_ARCH == 'arm' && success() }}
56+
shell: bash
57+
run: |
58+
wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.3/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
59+
sudo tar xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt
60+
/opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version
61+
echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV
62+
63+
- name: Install RISC-V ToolChains
64+
if: ${{ matrix.legs.QEMU_ARCH == 'riscv64' && success() }}
65+
run: |
66+
wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.4/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz
67+
sudo tar zxvf riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz -C /opt
68+
/opt/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin/riscv64-unknown-elf-gcc --version
69+
echo "RTT_EXEC_PATH=/opt/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin" >> $GITHUB_ENV
70+
71+
- name: Build BSP
72+
run: |
73+
echo CONFIG_RT_USING_UTESTCASES=y >> $TEST_BSP_ROOT/.config
74+
cat examples/utest/configs/$TEST_CONFIG_FILE >> $TEST_BSP_ROOT/.config
75+
scons --pyconfig-silent -C $TEST_BSP_ROOT
76+
scons -j$(nproc) -C $TEST_BSP_ROOT
77+
78+
- name: Start Test
79+
if: ${{ success() }}
80+
run: |
81+
git clone https://github.com/armink/UtestRunner.git
82+
pushd $TEST_BSP_ROOT
83+
dd if=/dev/zero of=sd.bin bs=1024 count=65536
84+
popd
85+
pushd UtestRunner
86+
if [ $TEST_SD_FILE != "None" ]; then
87+
python3 qemu_runner.py --system $TEST_QEMU_ARCH --machine $TEST_QEMU_MACHINE --elf ../$TEST_BSP_ROOT/rtthread.elf --sd ../$TEST_BSP_ROOT/$TEST_SD_FILE
88+
else
89+
python3 qemu_runner.py --system $TEST_QEMU_ARCH --machine $TEST_QEMU_MACHINE --elf ../$TEST_BSP_ROOT/rtthread.elf
90+
fi
91+
cat rtt_console.log
92+
popd

.github/workflows/file_check.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check File Format and License
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
scancode_job:
7+
runs-on: ubuntu-latest
8+
name: Scan code format and license
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Python
12+
uses: actions/setup-python@master
13+
with:
14+
python-version: 3.8
15+
16+
- name: Check Format and License
17+
shell: bash
18+
run: |
19+
pip install click chardet PyYaml
20+
python tools/file_check.py check 'https://github.com/RT-Thread/rt-thread' 'master'

0 commit comments

Comments
 (0)