* [PATCH 1/3] automation: add debian unstable arm64v8 image
2018-11-07 12:31 [PATCH 0/3] automation: build Xen on Arm64 Wei Liu
@ 2018-11-07 12:31 ` Wei Liu
2018-11-07 12:31 ` [PATCH 2/3] automation: add two Arm64 builds to Gitlab CI Wei Liu
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Wei Liu @ 2018-11-07 12:31 UTC (permalink / raw)
To: xen-devel; +Cc: Lars Kurth, Julien Grall, Wei Liu, Doug Goldstein
Unfortunately sharing dockerfile has proven impossible: 1) the base
image is different; 2) Arm doesn't need libc-dev-i386; 3) Arm needs
libfdt-dev.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
.../build/debian/unstable-arm64v8.dockerfile | 48 ++++++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 automation/build/debian/unstable-arm64v8.dockerfile
diff --git a/automation/build/debian/unstable-arm64v8.dockerfile b/automation/build/debian/unstable-arm64v8.dockerfile
new file mode 100644
index 0000000000..57db46a4d1
--- /dev/null
+++ b/automation/build/debian/unstable-arm64v8.dockerfile
@@ -0,0 +1,48 @@
+FROM arm64v8/debian:unstable
+LABEL maintainer.name="The Xen Project" \
+ maintainer.email="xen-devel@lists.xenproject.org"
+
+ENV DEBIAN_FRONTEND=noninteractive
+ENV USER root
+
+RUN mkdir /build
+WORKDIR /build
+
+# build depends
+RUN apt-get update && \
+ apt-get --quiet --yes install \
+ build-essential \
+ zlib1g-dev \
+ libncurses5-dev \
+ libssl-dev \
+ python2.7-dev \
+ xorg-dev \
+ uuid-dev \
+ libyajl-dev \
+ libaio-dev \
+ libglib2.0-dev \
+ clang \
+ libpixman-1-dev \
+ pkg-config \
+ flex \
+ bison \
+ gettext \
+ acpica-tools \
+ libfdt-dev \
+ bin86 \
+ bcc \
+ liblzma-dev \
+ libnl-3-dev \
+ ocaml-nox \
+ libfindlib-ocaml-dev \
+ markdown \
+ transfig \
+ pandoc \
+ checkpolicy \
+ wget \
+ git \
+ nasm \
+ && \
+ apt-get autoremove -y && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 2/3] automation: add two Arm64 builds to Gitlab CI
2018-11-07 12:31 [PATCH 0/3] automation: build Xen on Arm64 Wei Liu
2018-11-07 12:31 ` [PATCH 1/3] automation: add debian unstable arm64v8 image Wei Liu
@ 2018-11-07 12:31 ` Wei Liu
2018-11-07 12:42 ` Andrew Cooper
2018-11-07 12:31 ` [PATCH 3/3] automation: lift tools build restriction in build script Wei Liu
` (2 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Wei Liu @ 2018-11-07 12:31 UTC (permalink / raw)
To: xen-devel; +Cc: Lars Kurth, Julien Grall, Wei Liu, Doug Goldstein
Add two gcc builds. Clang builds are known to be broken at the moment.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
.gitlab-ci.yml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bf6bf7d895..f2db6dfa53 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -269,3 +269,25 @@ ubuntu-xenial-gcc-debug:
CONTAINER: ubuntu:xenial
debug: y
XEN_TARGET_ARCH: x86_64
+
+# Arm builds
+
+debian-unstable-gcc-arm64:
+ <<: *build
+ variables:
+ <<: *gcc
+ CONTAINER: debian:unstable-arm64v8
+ debug: n
+ XEN_TARGET_ARCH: arm64
+ tags:
+ - arm64
+
+debian-unstable-gcc-debug-arm64:
+ <<: *build
+ variables:
+ <<: *gcc
+ CONTAINER: debian:unstable-arm64v8
+ debug: y
+ XEN_TARGET_ARCH: arm64
+ tags:
+ - arm64
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 2/3] automation: add two Arm64 builds to Gitlab CI
2018-11-07 12:31 ` [PATCH 2/3] automation: add two Arm64 builds to Gitlab CI Wei Liu
@ 2018-11-07 12:42 ` Andrew Cooper
2018-11-07 12:45 ` Wei Liu
0 siblings, 1 reply; 8+ messages in thread
From: Andrew Cooper @ 2018-11-07 12:42 UTC (permalink / raw)
To: Wei Liu, xen-devel; +Cc: Lars Kurth, Julien Grall, Doug Goldstein
On 07/11/18 12:31, Wei Liu wrote:
> Add two gcc builds. Clang builds are known to be broken at the moment.
>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Would it be wise to have a RANDCONFIG build as well?
~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] automation: add two Arm64 builds to Gitlab CI
2018-11-07 12:42 ` Andrew Cooper
@ 2018-11-07 12:45 ` Wei Liu
0 siblings, 0 replies; 8+ messages in thread
From: Wei Liu @ 2018-11-07 12:45 UTC (permalink / raw)
To: Andrew Cooper
Cc: xen-devel, Julien Grall, Wei Liu, Doug Goldstein, Lars Kurth
On Wed, Nov 07, 2018 at 12:42:54PM +0000, Andrew Cooper wrote:
> On 07/11/18 12:31, Wei Liu wrote:
> > Add two gcc builds. Clang builds are known to be broken at the moment.
> >
> > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
>
> Would it be wise to have a RANDCONFIG build as well?
Sure. It appears that we forgot to put in randconf for gitlab ci at all.
:s
Wei.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 3/3] automation: lift tools build restriction in build script
2018-11-07 12:31 [PATCH 0/3] automation: build Xen on Arm64 Wei Liu
2018-11-07 12:31 ` [PATCH 1/3] automation: add debian unstable arm64v8 image Wei Liu
2018-11-07 12:31 ` [PATCH 2/3] automation: add two Arm64 builds to Gitlab CI Wei Liu
@ 2018-11-07 12:31 ` Wei Liu
2018-11-13 13:01 ` [PATCH 0/3] automation: build Xen on Arm64 Wei Liu
2018-11-13 13:40 ` Doug Goldstein
4 siblings, 0 replies; 8+ messages in thread
From: Wei Liu @ 2018-11-07 12:31 UTC (permalink / raw)
To: xen-devel; +Cc: Lars Kurth, Julien Grall, Wei Liu, Doug Goldstein
The restrictions are mostly from Travis CI days when cross-compilation
was not feasible. Now we will be building natively on Arm, remove
those lines.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
automation/scripts/build | 6 ------
1 file changed, 6 deletions(-)
diff --git a/automation/scripts/build b/automation/scripts/build
index c463b060d4..482ed48201 100755
--- a/automation/scripts/build
+++ b/automation/scripts/build
@@ -22,12 +22,6 @@ if [[ "${CC}" == "clang" ]]; then
cfgargs+=("--disable-stubdom")
fi
-if [[ "${XEN_TARGET_ARCH}" == "arm64" || "${XEN_TARGET_ARCH}" == "arm32" ]]; then
- cfgargs+=("--disable-tools") # we don't have the cross depends installed
-elif [[ "${CC}" != "clang" ]]; then
- cfgargs+=("--enable-ovmf") # build ovmf with gcc on x86, arm doesn't use in-tree ovmf
-fi
-
./configure "${cfgargs[@]}"
make -j$(nproc) dist
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 0/3] automation: build Xen on Arm64
2018-11-07 12:31 [PATCH 0/3] automation: build Xen on Arm64 Wei Liu
` (2 preceding siblings ...)
2018-11-07 12:31 ` [PATCH 3/3] automation: lift tools build restriction in build script Wei Liu
@ 2018-11-13 13:01 ` Wei Liu
2018-11-13 13:40 ` Doug Goldstein
4 siblings, 0 replies; 8+ messages in thread
From: Wei Liu @ 2018-11-13 13:01 UTC (permalink / raw)
To: xen-devel; +Cc: Lars Kurth, Julien Grall, Wei Liu, Doug Goldstein
Doug?
(Sorry you weren't CC'ed on the cover letter)
On Wed, Nov 07, 2018 at 12:31:46PM +0000, Wei Liu wrote:
> Hi all
>
> This is my first attempt to quickly get something useful for Arm in Gitlab CI
> with a machine borrowed from Packet.net.
>
> The runner is configured manually at the moment (see below). It is tagged with
> arm,arm64,docker so it will only run Arm64 jobs. Idealy we should build it with
> Terraform as well. There is Packet.net API support for Terraform but I don't
> have time to read their documentation.
>
> I have built a base image for Arm and pushed it to Gitlab docker repository.
> Building an image requires an native Arm environment.
>
> We should also probably refactor .gitlab-ci.yml a bit.
>
> Wei.
>
> Command to register the runner:
> gitlab-runner register --non-interactive -r ${gitlab_token} --locked --url \
> https://gitlab.com --executor docker --tag-list arm,arm64,docker --docker-image \
> ruby:2.1
>
> Wei Liu (3):
> automation: add debian unstable arm64v8 image
> automation: add two Arm64 builds to Gitlab CI
> automation: lift tools build restriction in build script
>
> .gitlab-ci.yml | 22 ++++++++++
> .../build/debian/unstable-arm64v8.dockerfile | 48 ++++++++++++++++++++++
> automation/scripts/build | 6 ---
> 3 files changed, 70 insertions(+), 6 deletions(-)
> create mode 100644 automation/build/debian/unstable-arm64v8.dockerfile
>
> --
> 2.11.0
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 0/3] automation: build Xen on Arm64
2018-11-07 12:31 [PATCH 0/3] automation: build Xen on Arm64 Wei Liu
` (3 preceding siblings ...)
2018-11-13 13:01 ` [PATCH 0/3] automation: build Xen on Arm64 Wei Liu
@ 2018-11-13 13:40 ` Doug Goldstein
4 siblings, 0 replies; 8+ messages in thread
From: Doug Goldstein @ 2018-11-13 13:40 UTC (permalink / raw)
To: Wei Liu; +Cc: xen-devel, Julien Grall, Lars Kurth
> On Nov 7, 2018, at 6:31 AM, Wei Liu <wei.liu2@citrix.com> wrote:
>
> Hi all
>
> This is my first attempt to quickly get something useful for Arm in Gitlab CI
> with a machine borrowed from Packet.NET
Thanks for getting this done Wei!
For the whole series:
Acked-by: Doug Goldstein <cardoe@cardoe.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread