Commit 91ac61e3 authored by Federico Vaga's avatar Federico Vaga

ci: use KERNELSRC instead of LINUX

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 7e24ad87
...@@ -52,18 +52,19 @@ documentation: ...@@ -52,18 +52,19 @@ documentation:
build-centos-7: build-centos-7:
stage: build stage: build
variables: variables:
LINUX: /usr/src/kernels/*/ KERNELSRC: /usr/src/kernels/*/
image: image:
name: gitlab-registry.cern.ch/coht/common-containers/build-centos-7:latest name: gitlab-registry.cern.ch/coht/common-containers/build-centos-7:latest
before_script: before_script:
- *script_fetch_kernel_dep - *script_fetch_kernel_dep
- *script_build_kernel_dep - *script_build_kernel_dep
script: script:
- export KERNELSRC=/usr/src/kernels/*/
- make -C software - make -C software
.script_build_kernel_ver: &script_build_kernel_ver .script_build_kernel_ver: &script_build_kernel_ver
- source /linux-versions.sh - source /linux-versions.sh
- fetch $VERSION && prepare $VERSION && export LINUX=$(linux $VERSION) - fetch $VERSION && prepare $VERSION && export KERNELSRC=$(linux $VERSION)
- *script_build_kernel_dep - *script_build_kernel_dep
- make -C software/kernel all - make -C software/kernel all
...@@ -79,6 +80,6 @@ build-kernel: ...@@ -79,6 +80,6 @@ build-kernel:
- *script_fetch_kernel_dep - *script_fetch_kernel_dep
script: script:
- source /linux-versions.sh - source /linux-versions.sh
- fetch $VERSION && prepare $VERSION && export LINUX=$(linux $VERSION) && export KERNELSRC=$(linux $VERSION) - fetch $VERSION && prepare $VERSION && export KERNELSRC=$(linux $VERSION) && export KERNELSRC=$(linux $VERSION)
- *script_build_kernel_dep - *script_build_kernel_dep
- make -C software/kernel all - make -C software/kernel all
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