Last active
August 13, 2016 11:37
-
-
Save slapglif/1582cd63c846f492ef55b59e65c45430 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
KERNEL_VERSION=$(echo `uname -r` | sed 's/\(.*\)-boot2docker/\1/') | |
MAKE="--workdir=/linux-kernel --rm -v /usr/src:/usr/src -v /lib/modules:/lib/modules -v /linux-kernel:/linux-kernel ivotron/alpine-build-base make" | |
rm -r /linux-kernel | |
cd /c/Users/Kristy/tmp | |
curl https://www.kernel.org/pub/linux/kernel/v${KERNEL_VERSION%%.*}.x/linux-$KERNEL_VERSION.tar.gz | tar -C / -xz | |
cd / | |
mv /linux-* /linux-kernel/ | |
docker run $MAKE olddefconfig | |
docker run $MAKE -j8 modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment