new file mode 100644
@@ -0,0 +1,24 @@
+FROM debian:unstable
+LABEL maintainer.name="The Xen Project" \
+ maintainer.email="xen-devel@lists.xenproject.org"
+
+ENV DEBIAN_FRONTEND=noninteractive
+ENV USER root
+ENV CROSS_COMPILE /usr/bin/arm-linux-gnueabihf-
+
+RUN mkdir /build
+WORKDIR /build
+
+# build depends
+RUN apt-get update && \
+ apt-get --quiet --yes install \
+ build-essential \
+ flex \
+ bison \
+ git \
+ gcc-arm-linux-gnueabihf \
+ && \
+ apt-get autoremove -y && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*
+
@@ -117,6 +117,33 @@
variables:
<<: *clang
+.arm32-cross-build-tmpl:
+ <<: *build
+ variables:
+ XEN_TARGET_ARCH: arm32
+ tags:
+ - x86_64
+
+.arm32-cross-build:
+ extends: .arm32-cross-build-tmpl
+ variables:
+ debug: n
+
+.arm32-cross-build-debug:
+ extends: .arm32-cross-build-tmpl
+ variables:
+ debug: y
+
+.gcc-arm32-cross-build:
+ extends: .arm32-cross-build
+ variables:
+ <<: *gcc
+
+.gcc-arm32-cross-build-debug:
+ extends: .arm32-cross-build-debug
+ variables:
+ <<: *gcc
+
.arm64-build-tmpl:
<<: *build
variables:
@@ -450,6 +477,29 @@ alpine-3.12-clang-debug:
variables:
CONTAINER: alpine:3.12
+# Arm32 cross-build
+
+debian-unstable-gcc-arm32:
+ extends: .gcc-arm32-cross-build
+ variables:
+ CONTAINER: debian:unstable-arm32-gcc
+
+debian-unstable-gcc-arm32-debug:
+ extends: .gcc-arm32-cross-build-debug
+ variables:
+ CONTAINER: debian:unstable-arm32-gcc
+
+debian-unstable-gcc-arm32-randconfig:
+ extends: .gcc-arm32-cross-build
+ variables:
+ CONTAINER: debian:unstable-arm32-gcc
+ RANDCONFIG: y
+
+debian-unstable-gcc-arm32-debug-randconfig:
+ extends: .gcc-arm32-cross-build-debug
+ variables:
+ CONTAINER: debian:unstable-arm32-gcc
+ RANDCONFIG: y
# Arm builds
@@ -16,6 +16,11 @@ else
make -j$(nproc) -C xen defconfig
fi
+# arm32 only cross-compiles the hypervisor
+if [[ "${XEN_TARGET_ARCH}" = "arm32" ]]; then
+ hypervisor_only="y"
+fi
+
# build up our configure options
cfgargs=()
cfgargs+=("--enable-docs")