summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParthiban Nallathambi <[email protected]>2026-11-06 14:35:22 +0530
committerRbb666 <[email protected]>2026-11-24 15:01:33 +0800
commit73d70a5e2b62ed02b3d6084ff5372314707278f9 (patch)
tree2ce14e533f8c7cf997d7cd4f633f32aa06aa3f2e
parent297ee5e622cd787169c1337f613af7324ec03042 (diff)
[ci][rh850] Build and test qemu-rh850-u2c in CI
Hard and soft float builds, kernel and C++ utests with toolchain v1.2.0. The toolchain and QEMU downloads are checked with SHA-256. Signed-off-by: Parthiban Nallathambi <[email protected]>
-rw-r--r--.github/ALL_BSP_COMPILE.json7
-rw-r--r--.github/utest/configs/components/cplusplus.cfg3
-rw-r--r--.github/workflows/bsp_buildings.yml10
-rw-r--r--.github/workflows/utest_auto_run.yml33
-rw-r--r--bsp/README.md10
-rw-r--r--bsp/renesas/rh850/qemu-rh850-u2c/.ci/attachconfig/ci.attachconfig.yml3
-rw-r--r--tools/ci/bsp_detail.yml6
-rw-r--r--tools/ci/toolchain_bsp.yml4
8 files changed, 76 insertions, 0 deletions
diff --git a/.github/ALL_BSP_COMPILE.json b/.github/ALL_BSP_COMPILE.json
index 4e2bcaf30b..f7c3f13981 100644
--- a/.github/ALL_BSP_COMPILE.json
+++ b/.github/ALL_BSP_COMPILE.json
@@ -519,6 +519,13 @@
]
},
{
+ "RTT_BSP": "rh850",
+ "RTT_TOOL_CHAIN": "sourcery-v850-elf",
+ "SUB_RTT_BSP": [
+ "renesas/rh850/qemu-rh850-u2c"
+ ]
+ },
+ {
"RTT_BSP": "nordic(yml)",
"RTT_TOOL_CHAIN": "sourcery-arm",
"SUB_RTT_BSP": [
diff --git a/.github/utest/configs/components/cplusplus.cfg b/.github/utest/configs/components/cplusplus.cfg
new file mode 100644
index 0000000000..9a3ccbe786
--- /dev/null
+++ b/.github/utest/configs/components/cplusplus.cfg
@@ -0,0 +1,3 @@
+# dependencies
+CONFIG_RT_USING_CI_ACTION=y
+CONFIG_RT_USING_CPLUSPLUS=y
diff --git a/.github/workflows/bsp_buildings.yml b/.github/workflows/bsp_buildings.yml
index 94dd881245..7888f93cb0 100644
--- a/.github/workflows/bsp_buildings.yml
+++ b/.github/workflows/bsp_buildings.yml
@@ -318,6 +318,16 @@ jobs:
/opt/i386-unknown-elf_for_x86_64-pc-linux-gnu/bin/i386-unknown-elf-gcc --version
echo "RTT_EXEC_PATH=/opt/i386-unknown-elf_for_x86_64-pc-linux-gnu/bin" >> $GITHUB_ENV
+ - name: Install v850-elf ToolChains
+ if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-v850-elf' && success() }}
+ run: |
+ wget -q https://github.com/linumiz/rh850-gcc-toolchain/releases/download/v1.2.0/v850-elf-toolchain-linux-x86_64.tar.gz
+ echo "a2194a060295008a2bd67db0e24c1cda8a795eba832b49b3f1d4cbb64cb242bd v850-elf-toolchain-linux-x86_64.tar.gz" | sha256sum -c -
+ sudo mkdir -p /opt/v850-elf
+ sudo tar -xzf v850-elf-toolchain-linux-x86_64.tar.gz -C /opt/v850-elf
+ /opt/v850-elf/bin/v850-elf-gcc --version
+ echo "RTT_EXEC_PATH=/opt/v850-elf/bin" >> $GITHUB_ENV
+
- name: Bsp Scons Compile
if: ${{ success() }}
shell: bash
diff --git a/.github/workflows/utest_auto_run.yml b/.github/workflows/utest_auto_run.yml
index dea7ae87e0..fd4425d705 100644
--- a/.github/workflows/utest_auto_run.yml
+++ b/.github/workflows/utest_auto_run.yml
@@ -16,6 +16,7 @@ on:
- 'bsp/qemu-virt64-aarch64/**'
- 'bsp/qemu-virt64-riscv/**'
- 'bsp/xuantie/virt64/c906/**'
+ - 'bsp/renesas/rh850/**'
- 'components/**'
- 'examples/utest/**'
- 'include/**'
@@ -36,6 +37,7 @@ on:
- 'bsp/qemu-virt64-aarch64/**'
- 'bsp/qemu-virt64-riscv/**'
- 'bsp/xuantie/virt64/c906/**'
+ - 'bsp/renesas/rh850/**'
- 'components/**'
- 'examples/utest/**'
- 'include/**'
@@ -90,6 +92,8 @@ jobs:
- { UTEST: "AARCH64-rtsmart", RTT_BSP: "bsp/zynqmp-a53-dfzu2eg", QEMU_ARCH: "aarch64", QEMU_MACHINE: "xlnx-zcu102", SD_FILE: "None", KERNEL: "rtsmart", "SMP_RUN":"" }
- { UTEST: "AARCH64-smp", RTT_BSP: "bsp/zynqmp-a53-dfzu2eg", QEMU_ARCH: "aarch64", QEMU_MACHINE: "xlnx-zcu102", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"smp" }
+ - { UTEST: "RH850", RTT_BSP: "bsp/renesas/rh850/qemu-rh850-u2c", QEMU_ARCH: "rh850", QEMU_MACHINE: "rh850-u2c", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"" }
+
config_file:
- "default.cfg"
@@ -139,6 +143,10 @@ jobs:
config_file: "kernel/mem.cfg"
- platform: { UTEST: "AARCH64-smp", RTT_BSP: "bsp/qemu-virt64-aarch64", QEMU_ARCH: "aarch64", QEMU_MACHINE: "virt", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"smp" }
config_file: "kernel/mem.cfg"
+ - platform: { UTEST: "RH850", RTT_BSP: "bsp/renesas/rh850/qemu-rh850-u2c", QEMU_ARCH: "rh850", QEMU_MACHINE: "rh850-u2c", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"" }
+ config_file: "kernel/kernel_basic.cfg"
+ - platform: { UTEST: "RH850", RTT_BSP: "bsp/renesas/rh850/qemu-rh850-u2c", QEMU_ARCH: "rh850", QEMU_MACHINE: "rh850-u2c", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"" }
+ config_file: "kernel/mem.cfg"
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
config_file: "kernel/atomic_c11.cfg"
- platform: { UTEST: "RISCV", RTT_BSP: "bsp/qemu-virt64-riscv", QEMU_ARCH: "riscv64", QEMU_MACHINE: "virt", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"" }
@@ -146,6 +154,8 @@ jobs:
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
config_file: "cpp11/cpp11.cfg"
+ - platform: { UTEST: "RH850", RTT_BSP: "bsp/renesas/rh850/qemu-rh850-u2c", QEMU_ARCH: "rh850", QEMU_MACHINE: "rh850-u2c", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"" }
+ config_file: "components/cplusplus.cfg"
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
config_file: "components/lwip.cfg"
@@ -264,6 +274,22 @@ jobs:
echo "TOOLCHAIN_INSTALLED=aarch64-musl" >> $GITHUB_ENV
fi
+ if [[ "${{ matrix.platform.QEMU_ARCH }}" == "rh850" ]]; then
+ echo "Starting install RH850 ToolChains"
+ wget -q https://github.com/linumiz/rh850-gcc-toolchain/releases/download/v1.2.0/v850-elf-toolchain-linux-x86_64.tar.gz
+ echo "a2194a060295008a2bd67db0e24c1cda8a795eba832b49b3f1d4cbb64cb242bd v850-elf-toolchain-linux-x86_64.tar.gz" | sha256sum -c -
+ sudo mkdir -p /opt/v850-elf /opt/qemu-rh850
+ sudo tar -xzf v850-elf-toolchain-linux-x86_64.tar.gz -C /opt/v850-elf
+ /opt/v850-elf/bin/v850-elf-gcc --version
+ wget -q https://github.com/linumiz/qemu-rh850/releases/download/rh850-v1.2.0/qemu-rh850-linux-x86_64.tar.gz
+ echo "1e1d3d5d3a365ec24047e9128b11df09fdfddb2b385aa4c77dc45253aa448f6b qemu-rh850-linux-x86_64.tar.gz" | sha256sum -c -
+ sudo tar -xzf qemu-rh850-linux-x86_64.tar.gz -C /opt/qemu-rh850
+ /opt/qemu-rh850/bin/qemu-system-rh850 --version
+ echo "/opt/qemu-rh850/bin" >> $GITHUB_PATH
+ echo "RTT_EXEC_PATH=/opt/v850-elf/bin" >> $GITHUB_ENV
+ echo "RTT_CC_PREFIX=v850-elf-" >> $GITHUB_ENV
+ echo "TOOLCHAIN_INSTALLED=rh850" >> $GITHUB_ENV
+ fi
# Install CPP11 Preprocessing Toolchain
if [[ "${{ matrix.platform.QEMU_ARCH }}" == "arm" && "${{ matrix.config_file }}" == "cpp11/cpp11.cfg" && "${{ matrix.platform.KERNEL }}" == "standard" ]]; then
sudo rm -f /opt/gcc-arm-none-eabi-10-2020-q4-major/arm-none-eabi/include/c++/10.2.1/thread
@@ -441,6 +467,13 @@ jobs:
"${dtb_args[@]}" \
-append "console=ttyS0 earlycon=sbi" \
> qemu_output_$TEST_QEMU_ARCH.log 2>&1 &
+ elif [[ "${{ matrix.platform.QEMU_ARCH }}" == "rh850" ]]; then
+ qemu-system-$TEST_QEMU_ARCH \
+ -nographic \
+ -M $TEST_QEMU_MACHINE \
+ -icount shift=4,sleep=on \
+ -kernel $TEST_BSP_ROOT/rtthread.elf \
+ > qemu_output_$TEST_QEMU_ARCH.log 2>&1 &
elif [[ "${{ matrix.platform.QEMU_ARCH }}" == "arm" ]]; then
qemu-system-$TEST_QEMU_ARCH \
-nographic \
diff --git a/bsp/README.md b/bsp/README.md
index 0d20c2c0ff..a2b0d7da90 100644
--- a/bsp/README.md
+++ b/bsp/README.md
@@ -945,6 +945,16 @@ This document is based on the RT-Thread mainline repository and categorizes the
---
+### RH850 Architecture Series
+
+#### ⚪ Renesas RH850
+
+| BSP Name | UART |
+|----------|------|
+| [qemu-rh850-u2c](renesas/rh850/qemu-rh850-u2c) | ✅ |
+
+---
+
### x86 Architecture Series
#### ⚪ x86
diff --git a/bsp/renesas/rh850/qemu-rh850-u2c/.ci/attachconfig/ci.attachconfig.yml b/bsp/renesas/rh850/qemu-rh850-u2c/.ci/attachconfig/ci.attachconfig.yml
new file mode 100644
index 0000000000..6f456ed54b
--- /dev/null
+++ b/bsp/renesas/rh850/qemu-rh850-u2c/.ci/attachconfig/ci.attachconfig.yml
@@ -0,0 +1,3 @@
+cpu.soft-float:
+ kconfig:
+ - CONFIG_RT_USING_FPU=n
diff --git a/tools/ci/bsp_detail.yml b/tools/ci/bsp_detail.yml
index 856abbe86c..1c52eb18d4 100644
--- a/tools/ci/bsp_detail.yml
+++ b/tools/ci/bsp_detail.yml
@@ -1628,6 +1628,12 @@ renesas/ra8m1-ek:
mdk5: true
menuconfig: true
rtconfig.h: true
+renesas/rh850/qemu-rh850-u2c:
+ .config: true
+ README.md: true
+ gcc: v850-elf-gcc
+ menuconfig: true
+ rtconfig.h: true
renesas/rzt2m_rsk:
.config: true
README.md: true
diff --git a/tools/ci/toolchain_bsp.yml b/tools/ci/toolchain_bsp.yml
index 323c81950b..17de6fa15f 100644
--- a/tools/ci/toolchain_bsp.yml
+++ b/tools/ci/toolchain_bsp.yml
@@ -432,3 +432,7 @@ unicore32-linux-gcc:
bsp:
- sep6200
count: 1
+v850-elf-gcc:
+ bsp:
+ - renesas/rh850/qemu-rh850-u2c
+ count: 1