Commit 166cb3ab authored by Jan Kiszka's avatar Jan Kiszka
Browse files

ci: Add 32-bit x86 compat userland build

This should help to catch breakages of the compat case.

We only need to build userland as the kernel is already covered by the
x86 job.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent f9c37a71
......@@ -27,6 +27,7 @@ variables:
autoconf autogen libtool pkg-config ccache flex libssl-dev"
PACKAGES_arm: "gcc-${GCC_VERSION} gcc-${GCC_VERSION}-arm-linux-gnueabihf libc6-dev-armhf-cross"
PACKAGES_arm64: "gcc-${GCC_VERSION} gcc-${GCC_VERSION}-aarch64-linux-gnu libc6-dev-arm64-cross"
PACKAGES_i386: "gcc-${GCC_VERSION} gcc-${GCC_VERSION}-i686-linux-gnu libc6-dev-i386-cross"
PACKAGES_powerpc: "gcc-8 gcc-8-powerpc-linux-gnu libc6-dev-powerpc-cross"
......@@ -39,7 +40,7 @@ variables:
- apt install -y ${PACKAGES} ${!ARCH_PACKAGES}
- REV=$(git ls-remote --tags --head --refs ${PIPELINE_KERNEL} | sed -e "s/.*[[:space:]]refs\/\(tags\|heads\)\///" | grep "${PIPELINE_REV}" | sort -r -n -t - -k 5 -k 6 | head -1)
- test -n "${REV}" || REV="${PIPELINE_REV}"
- git clone --depth 1 --branch ${REV} ${PIPELINE_KERNEL} ${KDIR}
- test -n "${PIPELINE_KERNEL}" && git clone --depth 1 --branch ${REV} ${PIPELINE_KERNEL} ${KDIR}
- case "${ARCH}" in
export CROSS_COMPILE=aarch64-linux-gnu-;
......@@ -51,6 +52,11 @@ variables:
export CONFIGURE_OPTS="--host=arm-linux-gnueabihf --with-cc=arm-linux-gnueabihf-gcc";
update-alternatives --install /usr/bin/arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gcc /usr/bin/arm-linux-gnueabihf-gcc-${GCC_VERSION} 800;
export CROSS_COMPILE=i686-linux-gnu-;
export CONFIGURE_OPTS="--host=i686-linux-gnu --with-cc=i686-linux-gnu-gcc";
update-alternatives --install /usr/bin/i686-linux-gnu-gcc i686-linux-gnu-gcc /usr/bin/i686-linux-gnu-gcc-${GCC_VERSION} 800;
export GCC_VERSION=8
export CROSS_COMPILE=powerpc-linux-gnu-;
......@@ -255,6 +261,17 @@ x86-4.19-cip-release:
KERNEL_DEFCONFIG: x86_64_defconfig
extends: .build
ARCH: i386
- export CCACHE_DIR=$(pwd)/.ccache
- scripts/bootstrap
- ./configure --enable-smp ${CONFIGURE_OPTS}
- make -j $(nproc)
- ccache -s
extends: .build
image: debian:buster
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment