automation: add arm32 cross-build tests for Xen
PATCH v2 1/1 automation: add arm32 cross-build tests for Xen
Add a debian build container with cross-gcc for arm32 installed. Add build jobs to cross-compile Xen-only for arm32.
Signed-off-by Stefano Stabellini <[email protected]>
Acked-by Wei Liu <[email protected]>
---
Rebased on top of staging, using the new "hypervisor_only" option.
--- .../debian/unstable-arm32-gcc.dockerfile | 24 +++++++++ automation/gitlab-ci/build.yaml | 50 +++++++++++++++++++ automation/scripts/build | 5 ++ 3 files changed, 79 insertions(+) create mode 100644 automation/build/debian/unstable-arm32-gcc.dockerfile
automation/build/debian/unstable-arm32-gcc.dockerfile new file +24 -0
@@ -0,0 +1,24 @@ +FROM debian:unstable +LABEL maintainer.name="The Xen Project" \ + maintainer.email="[email protected]" + +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/* +
automation/gitlab-ci/build.yaml +50 -0
62 lines not on this page · raw message
automation/scripts/build +5 -0
@@ -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")
Signature · 1 line
2.17.1