Commit d5cddff3 authored by Federico Vaga's avatar Federico Vaga

Merge branch '26-use-project-evergreen-s-template-for-driver-building-and-validation' into 'master'

Resolve "Use project evergreen's template for driver building and validation"

Closes #26

See merge request be-cem-edl/fec/hardware-modules/svec!18
parents ad807684 03088ec4
......@@ -20,49 +20,22 @@ documentation:
paths:
- $EDL_CI_EOS_OUTPUT_DIR
.script_fetch_kernel_dep: &script_fetch_kernel_dep
- git clone --depth 1 https://gitlab.cern.ch/cohtdrivers/coht.git ~/git/coht
- export VMEBRIDGE=~/git/coht/vmebridge-ng
- git clone --depth 1 https://gitlab.cern.ch/fvaga/fpga-manager.git ~/git/fpga-mgr
- export FPGA_MGR=~/git/fpga-mgr
- git clone -b v1.1.5 --depth 1 https://ohwr.org/project/fmc-sw.git ~/git/fmc
- export FMC=~/git/fmc
- git clone --depth 1 https://ohwr.org/project/general-cores.git ~/git/general-cores/
- export SPI=~/git/general-cores/software/spi-ocores
- export I2C=~/git/general-cores/software/i2c-ocores
.script_build_kernel_dep: &script_build_kernel_dep
- export FPGA_MGR=/opt/fpga-mgr
- git clone --depth 1 https://gitlab.cern.ch/fvaga/fpga-manager.git $FPGA_MGR
- make -C $FPGA_MGR all
- make -C $FMC/drivers/fmc all
build-centos-7:
stage: build
kernel_build_cc7:
extends: .kernel_build_cc7
variables:
CONFIG_FPGA_MGR_BACKPORT: y
KERNELSRC: /usr/src/kernels/*/
image:
name: gitlab-registry.cern.ch/coht/common-containers/build-centos-7:latest
EDL_CI_KBUILD_PATHS: software/kernel
before_script:
- *script_fetch_kernel_dep
- *script_build_kernel_dep
script:
- export KERNELSRC=/usr/src/kernels/*/
- make -C software
build-kernel:
stage: build
allow_failure: true
variables:
CONFIG_FPGA_MGR_BACKPORT: n
image:
name: gitlab-registry.cern.ch/coht/common-containers/build-kernel:latest
parallel:
matrix:
- VERSION: [5.10.149, 5.15.74]
kernel_build_validation:
extends: .kernel_build_validation
before_script:
- *script_fetch_kernel_dep
script:
- source /linux-versions.sh
- fetch $VERSION && prepare $VERSION && export KERNELSRC=$(linux $VERSION)
- *script_build_kernel_dep
- make -C software/kernel all
- |
echo "Checking Dependencies"
if [ "$VMEBRIDGE_BUILDS" != "0" ]; then export CONFIG_VME=n; echo 'VMEBRIDGE did not build successfully. Thus, VME support will not be available.'; else export CONFIG_VME=y; fi
if [ "$FMC_BUILDS" != "0" ]; then echo 'FMC did not build successfully. Exiting'; exit 1; fi
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