qemu-system-misc ships with qemu-system-or1k and kernel.org mirrors a crostool toolchain capable of building barebox for running in it. Let's make use of that. We don't yet activate openrisc for CI test as it fails to boot up with SELFTEST_OF_MANIPULATION. A suggested fix is still under discussion[1]. [1]: https://lore.barebox.org/barebox/20230605063719.1431079-1-a.fatoum@xxxxxxxxxxxxxx/ Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- .github/workflows/build-defconfigs.yml | 2 +- test/Containerfile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-defconfigs.yml b/.github/workflows/build-defconfigs.yml index ff9264721d87..4cf6df52d44d 100644 --- a/.github/workflows/build-defconfigs.yml +++ b/.github/workflows/build-defconfigs.yml @@ -3,7 +3,7 @@ name: build images on: [push, pull_request] env: - ARCH: arm mips powerpc riscv sandbox x86 + ARCH: arm mips powerpc riscv sandbox x86 openrisc jobs: defconfigs: diff --git a/test/Containerfile b/test/Containerfile index a53c00584f68..224ea2ea4804 100644 --- a/test/Containerfile +++ b/test/Containerfile @@ -55,6 +55,7 @@ RUN korg_crosstool_dl() { wget -nv -O - https://mirrors.edge.kernel.org/pub/tool korg_crosstool_dl x86_64 ${GCC_VERSION} arm-linux-gnueabi && \ korg_crosstool_dl x86_64 ${GCC_VERSION} aarch64-linux && \ korg_crosstool_dl x86_64 ${GCC_VERSION} mips-linux && \ + korg_crosstool_dl x86_64 ${GCC_VERSION} or1k-linux && \ korg_crosstool_dl x86_64 ${GCC_VERSION} powerpc-linux && \ korg_crosstool_dl x86_64 ${GCC_VERSION} riscv64-linux @@ -74,6 +75,7 @@ RUN cd /tmp && \ ENV CROSS_COMPILE_arm=/opt/gcc-${GCC_VERSION}-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi- ENV CROSS_COMPILE_arm64=/opt/gcc-${GCC_VERSION}-nolibc/aarch64-linux/bin/aarch64-linux- ENV CROSS_COMPILE_mips=/opt/gcc-${GCC_VERSION}-nolibc/mips-linux/bin/mips-linux- +ENV CROSS_COMPILE_openrisc=/opt/gcc-${GCC_VERSION}-nolibc/or1k-linux/bin/or1k-linux- ENV CROSS_COMPILE_powerpc=/opt/gcc-${GCC_VERSION}-nolibc/powerpc-linux/bin/powerpc-linux- ENV CROSS_COMPILE_riscv=/opt/gcc-${GCC_VERSION}-nolibc/riscv64-linux/bin/riscv64-linux- -- 2.39.2