4 CONFIG="arch/x86/configs/opnfv.config"
9 # Apply out of tree patches
11 for i in $SRC/kvmfornfv/patches/$1/*.patch
22 apt-get install -y git fakeroot build-essential ncurses-dev xz-utils kernel-package bc autoconf automake libtool python python-pip libssl-dev
25 # Build kernel in another directory, so some files (which are root writeable only) generated during kernel
26 # building wouldn't remain in the source directory mapped into Docker container
28 cp -r /kvmfornfv $SRC/.
35 # Workaround build bug on Ubuntu 14.04
36 cat <<EOF > arch/x86/boot/install.sh
38 cp -a -- "\$2" "\$4/vmlinuz-\$1"
41 # Configure the kernel
44 make oldconfig </dev/null
46 # Build the kernel debs
49 fakeroot make-kpkg --initrd --revision=$VERSION kernel_image kernel_headers -j$(nproc)
51 cp $SRC/kvmfornfv/linux-headers*.deb /kvmfornfv/.
52 cp $SRC/kvmfornfv/linux-image*.deb /kvmfornfv/.