tenku/docker/trusty-kbuilder/build-kernel.sh
gdm85 0e216f2548 * added Ubuntu Archive reference keyring
* added script to debootstrap Ubuntu Trusty
* added Dockerfile for Ubuntu Trusty kernel builder
2015-01-14 10:49:02 +01:00

17 lines
374 B
Bash
Executable File

#!/bin/bash
set -e
apt-get source linux-image-$(uname -r)
cd linux-3.13.0
## will fail here if no patches are available
## why are you recompiling kernel if no custom patches are there?
for MYP in $(ls ../patches); do
patch -p1 < ../patches/$MYP
done
fakeroot debian/rules clean
DEB_BUILD_OPTIONS=parallel=3 AUTOBUILD=1 NOEXTRAS=1 fakeroot debian/rules binary-generic