diff mbox series

[v4,1/4] automation: Add container for ppc64le builds

Message ID 0d59b5eb8de2b00839204c36a2a45eebab994369.1686936278.git.sanastasio@raptorengineering.com (mailing list archive)
State Superseded
Headers show
Series Initial support for Power | expand

Commit Message

Shawn Anastasio June 16, 2023, 5:48 p.m. UTC
Add a container for cross-compiling xen for ppc64le.

Signed-off-by: Shawn Anastasio <sanastasio@raptorengineering.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
 .../build/debian/bullseye-ppc64le.dockerfile  | 28 +++++++++++++++++++
 automation/scripts/containerize               |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 automation/build/debian/bullseye-ppc64le.dockerfile

Comments

Stefano Stabellini June 16, 2023, 7:37 p.m. UTC | #1
On Fri, 16 Jun 2023, Shawn Anastasio wrote:
> Add a container for cross-compiling xen for ppc64le.
> 
> Signed-off-by: Shawn Anastasio <sanastasio@raptorengineering.com>
> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>

Acked-by: Stefano Stabellini <sstabellini@kernel.org>

> ---
>  .../build/debian/bullseye-ppc64le.dockerfile  | 28 +++++++++++++++++++
>  automation/scripts/containerize               |  1 +
>  2 files changed, 29 insertions(+)
>  create mode 100644 automation/build/debian/bullseye-ppc64le.dockerfile
> 
> diff --git a/automation/build/debian/bullseye-ppc64le.dockerfile b/automation/build/debian/bullseye-ppc64le.dockerfile
> new file mode 100644
> index 0000000000..8a87631b52
> --- /dev/null
> +++ b/automation/build/debian/bullseye-ppc64le.dockerfile
> @@ -0,0 +1,28 @@
> +FROM debian:bullseye-slim
> +LABEL maintainer.name="The Xen Project" \
> +      maintainer.email="xen-devel@lists.xenproject.org"
> +
> +ENV DEBIAN_FRONTEND=noninteractive
> +ENV USER root
> +
> +# Add compiler path
> +ENV CROSS_COMPILE powerpc64le-linux-gnu-
> +
> +RUN mkdir /build
> +WORKDIR /build
> +
> +# build depends
> +RUN apt-get update && \
> +    apt-get --quiet --yes --no-install-recommends install \
> +        bison \
> +        build-essential \
> +        checkpolicy \
> +        flex \
> +        gawk \
> +        gcc-powerpc64le-linux-gnu \
> +        make \
> +        python3-minimal \
> +        && \
> +        apt-get autoremove -y && \
> +        apt-get clean && \
> +        rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*
> diff --git a/automation/scripts/containerize b/automation/scripts/containerize
> index 5476ff0ea1..6d46f63665 100755
> --- a/automation/scripts/containerize
> +++ b/automation/scripts/containerize
> @@ -33,6 +33,7 @@ case "_${CONTAINER}" in
>      _focal) CONTAINER="${BASE}/ubuntu:focal" ;;
>      _jessie) CONTAINER="${BASE}/debian:jessie" ;;
>      _jessie-i386) CONTAINER="${BASE}/debian:jessie-i386" ;;
> +    _bullseye-ppc64le) CONTAINER="${BASE}/debian:bullseye-ppc64le" ;;
>      _stretch|_) CONTAINER="${BASE}/debian:stretch" ;;
>      _stretch-i386) CONTAINER="${BASE}/debian:stretch-i386" ;;
>      _buster-gcc-ibt) CONTAINER="${BASE}/debian:buster-gcc-ibt" ;;
> -- 
> 2.30.2
>
Andrew Cooper June 16, 2023, 7:49 p.m. UTC | #2
On 16/06/2023 6:48 pm, Shawn Anastasio wrote:
> Add a container for cross-compiling xen for ppc64le.
>
> Signed-off-by: Shawn Anastasio <sanastasio@raptorengineering.com>
> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>

Just to say that I already committed this patch, when rebuilding the
container.  We likely raced given the time you posted the series, but
you'll want to drop it as part of rebasing onto the staging branch (if
another series is needed).

~Andrew
Shawn Anastasio June 16, 2023, 7:53 p.m. UTC | #3
On 6/16/23 2:49 PM, Andrew Cooper wrote:
> On 16/06/2023 6:48 pm, Shawn Anastasio wrote:
>> Add a container for cross-compiling xen for ppc64le.
>>
>> Signed-off-by: Shawn Anastasio <sanastasio@raptorengineering.com>
>> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
> Just to say that I already committed this patch, when rebuilding the
> container.  We likely raced given the time you posted the series, but
> you'll want to drop it as part of rebasing onto the staging branch (if
> another series is needed).

Apologies. If a v5 is needed I'll definitely exclude this patch then.

> ~Andrew
Thanks,
Shawn
diff mbox series

Patch

diff --git a/automation/build/debian/bullseye-ppc64le.dockerfile b/automation/build/debian/bullseye-ppc64le.dockerfile
new file mode 100644
index 0000000000..8a87631b52
--- /dev/null
+++ b/automation/build/debian/bullseye-ppc64le.dockerfile
@@ -0,0 +1,28 @@ 
+FROM debian:bullseye-slim
+LABEL maintainer.name="The Xen Project" \
+      maintainer.email="xen-devel@lists.xenproject.org"
+
+ENV DEBIAN_FRONTEND=noninteractive
+ENV USER root
+
+# Add compiler path
+ENV CROSS_COMPILE powerpc64le-linux-gnu-
+
+RUN mkdir /build
+WORKDIR /build
+
+# build depends
+RUN apt-get update && \
+    apt-get --quiet --yes --no-install-recommends install \
+        bison \
+        build-essential \
+        checkpolicy \
+        flex \
+        gawk \
+        gcc-powerpc64le-linux-gnu \
+        make \
+        python3-minimal \
+        && \
+        apt-get autoremove -y && \
+        apt-get clean && \
+        rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*
diff --git a/automation/scripts/containerize b/automation/scripts/containerize
index 5476ff0ea1..6d46f63665 100755
--- a/automation/scripts/containerize
+++ b/automation/scripts/containerize
@@ -33,6 +33,7 @@  case "_${CONTAINER}" in
     _focal) CONTAINER="${BASE}/ubuntu:focal" ;;
     _jessie) CONTAINER="${BASE}/debian:jessie" ;;
     _jessie-i386) CONTAINER="${BASE}/debian:jessie-i386" ;;
+    _bullseye-ppc64le) CONTAINER="${BASE}/debian:bullseye-ppc64le" ;;
     _stretch|_) CONTAINER="${BASE}/debian:stretch" ;;
     _stretch-i386) CONTAINER="${BASE}/debian:stretch-i386" ;;
     _buster-gcc-ibt) CONTAINER="${BASE}/debian:buster-gcc-ibt" ;;