2 # Copyright (C) 2016 - Francis Deslauriers <francis.deslauriers@efficios.com>
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23 $SSH_COMMAND "$STORAGE_USER@$STORAGE_HOST" ls "$STORAGE_KERNEL_IMAGE"
26 # We need to build the lttng modules if the kernel has changed.
30 $SSH_COMMAND "$STORAGE_USER@$STORAGE_HOST" ls "$STORAGE_LTTNG_MODULES"
36 # We need to fetch the kernel source and lttng-modules to build either the
38 if [ $NEED_MODULES_BUILD -eq 1 ] ||
[ $NEED_KERNEL_BUILD -eq 1 ] ; then
40 cp src
/lttng-ci
/lava
/kernel
/vanilla
/x86_64_server.config
"$LINUX_PATH/.config"
41 make --directory="$LINUX_PATH" olddefconfig
43 if [ $BUILD_DEVICE = 'kvm' ] ; then
44 make --directory="$LINUX_PATH" kvmconfig
47 make --directory="$LINUX_PATH" modules_prepare
50 #We create files to specify what needs to be built for the subsequent build steps
51 if [ $NEED_MODULES_BUILD -eq 0 ] ; then
52 touch modules-built.txt
54 if [ $NEED_KERNEL_BUILD -eq 0 ] ; then
55 touch kernel-built.txt
This page took 0.030343 seconds and 4 git commands to generate.