- .fdo.container-build@debian
- .container
variables:
- FDO_DISTRIBUTION_TAG: &x86_build "2020-05-18"
+ FDO_DISTRIBUTION_TAG: &x86_build "2020-05-18-baremetal"
.use-x86_build:
variables:
- .fdo.container-build@debian@arm64v8
- .container
variables:
- FDO_DISTRIBUTION_TAG: &arm_build "2020-05-01-netcat"
+ FDO_DISTRIBUTION_TAG: &arm_build "2020-05-14-baremetal"
.use-arm_build:
variables:
############### Generate cross build file for Meson
-cross_file="/cross_file-armhf.txt"
-/usr/share/meson/debcrossgen --arch armhf -o "$cross_file"
-# Explicitly set ccache path for cross compilers
-sed -i "s|/usr/bin/\([^-]*\)-linux-gnu\([^-]*\)-g|/usr/lib/ccache/\\1-linux-gnu\\2-g|g" "$cross_file"
-# Don't need wrapper for armhf executables
-sed -i -e '/\[properties\]/a\' -e "needs_exe_wrapper = False" "$cross_file"
+. .gitlab-ci/create-cross-file.sh armhf
############### Generate kernel, ramdisk, test suites, etc for LAVA jobs
# Generate cross build files for Meson
for arch in $CROSS_ARCHITECTURES; do
- cross_file="/cross_file-$arch.txt"
- /usr/share/meson/debcrossgen --arch "$arch" -o "$cross_file"
- # Explicitly set ccache path for cross compilers
- sed -i "s|/usr/bin/\([^-]*\)-linux-gnu\([^-]*\)-g|/usr/lib/ccache/\\1-linux-gnu\\2-g|g" "$cross_file"
- if [ "$arch" = "i386" ]; then
- # Work around a bug in debcrossgen that should be fixed in the next release
- sed -i "s|cpu_family = 'i686'|cpu_family = 'x86'|g" "$cross_file"
- fi
-
- # Rely on qemu-user being configured in binfmt_misc on the host
- sed -i -e '/\[properties\]/a\' -e "needs_exe_wrapper = False" "$cross_file"
+ . .gitlab-ci/create-cross-file.sh $arch
done
--- /dev/null
+#!/bin/bash
+
+arch=$1
+cross_file="/cross_file-$arch.txt"
+/usr/share/meson/debcrossgen --arch $arch -o "$cross_file"
+# Explicitly set ccache path for cross compilers
+sed -i "s|/usr/bin/\([^-]*\)-linux-gnu\([^-]*\)-g|/usr/lib/ccache/\\1-linux-gnu\\2-g|g" "$cross_file"
+if [ "$arch" = "i386" ]; then
+ # Work around a bug in debcrossgen that should be fixed in the next release
+ sed -i "s|cpu_family = 'i686'|cpu_family = 'x86'|g" "$cross_file"
+fi
+# Rely on qemu-user being configured in binfmt_misc on the host
+sed -i -e '/\[properties\]/a\' -e "needs_exe_wrapper = False" "$cross_file"