mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ci: build: have CI build ARCH=openrisc
@ 2023-06-19  9:46 Ahmad Fatoum
  2023-06-21  7:53 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2023-06-19  9:46 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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@pengutronix.de/

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 .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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ci: build: have CI build ARCH=openrisc
  2023-06-19  9:46 [PATCH] ci: build: have CI build ARCH=openrisc Ahmad Fatoum
@ 2023-06-21  7:53 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2023-06-21  7:53 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Mon, Jun 19, 2023 at 11:46:37AM +0200, Ahmad Fatoum wrote:
> 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@pengutronix.de/
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  .github/workflows/build-defconfigs.yml | 2 +-
>  test/Containerfile                     | 2 ++
>  2 files changed, 3 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> 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
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-21  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19  9:46 [PATCH] ci: build: have CI build ARCH=openrisc Ahmad Fatoum
2023-06-21  7:53 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox