From 56168452b2a2fa8b4efc664d9fcb08536486a1ba Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Tue, 3 Dec 2019 15:55:37 +0100 Subject: gitlab-ci: import from toradex_5.4-2.1.x-imx - Change to use Vybrid defconfig and device trees. - Drop building of any aarch64 kernel. - Change config to compress the zImage with gzip Signed-off-by: Max Krummenacher --- .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000000..fdb40cbeb99b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,35 @@ +variables: +# uncomment for the pipeline debug purpose +# CI_DEBUG_TRACE: "true" + CI_IMAGE: gitlab.int.toradex.com:4567/philippe.schenker/linux-toradex/ci-kernel-builder:gcc9 + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + DOCKER_TLS_CERTDIR: "" + +stages: + - build-kernel + +build_kernel: + stage: build-kernel + image: $CI_IMAGE + variables: + GIT_STRATEGY: fetch + GIT_DEPTH: "1" + script: | + echo "GCC used to build binaries is" + which ${CROSS_COMPILE}gcc + ${CROSS_COMPILE}gcc --version + echo -e "Arch is \e[36m$ARCH\e[39m" + echo "Current directory: ${PWD}" + THREADS=$(grep processor /proc/cpuinfo -c) + echo "building with $THREADS parallel threads" + cd $CI_PROJECT_DIR + DEVICETREES=$(ls arch/arm/boot/dts/vf*colibri*.dts | sed 's/arch\/arm\/boot\/dts\///' | sed 's/\.dts/\.dtb/') + make colibri_vf_defconfig + # workaround lzop missing in the build container + sed -i 's/CONFIG_KERNEL_LZO=y/# CONFIG_KERNEL_LZO is not set/' .config + sed -i 's/..CONFIG_KERNEL_GZIP is not set/CONFIG_KERNEL_GZIP=y/' .config + echo -e "building: \n$DEVICETREES" + make -j$THREADS $DEVICETREES + make -j$THREADS + make mrproper -- cgit v1.2.3