diff options
author | ZoRo <dos21h@gmail.com> | 2018-09-20 19:06:54 +0100 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2018-09-20 19:06:54 +0100 |
commit | 9a1bc7d1dbee1cca01462041fcf9c3b2f64a8334 (patch) | |
tree | 9953a7c369bc1c6523e207ef99bd8b5e844889dc /create_kernel/create_kernel.sh | |
download | os201-9a1bc7d1dbee1cca01462041fcf9c3b2f64a8334.tar.gz os201-9a1bc7d1dbee1cca01462041fcf9c3b2f64a8334.zip |
Initial commit
Diffstat (limited to 'create_kernel/create_kernel.sh')
-rwxr-xr-x | create_kernel/create_kernel.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/create_kernel/create_kernel.sh b/create_kernel/create_kernel.sh new file mode 100755 index 0000000..7e94050 --- /dev/null +++ b/create_kernel/create_kernel.sh @@ -0,0 +1,19 @@ +#!/bin/dash + +KERNEL_VERSION=4.4.148 +#KERNEL_VERSION=4.9.120 +#KERNEL_VERSION=4.14.63 +KERNEL_MAJOR_VERSION=v4.x +KERNEL_PAGE=https://cdn.kernel.org +DEVICE_NAME=generic + +echo "Download kernel" +wget -c $KERNEL_PAGE/pub/linux/kernel/$KERNEL_MAJOR_VERSION/linux-$KERNEL_VERSION.tar.xz +echo "Unpack kernel" +tar -xvf linux-$KERNEL_VERSION.tar.xz +echo "Copy config to kernel" +cp config/$DEVICE_NAME/config-$KERNEL_VERSION ./linux-$KERNEL_VERSION/.config +echo "Compile kernel" +cd ./linux-$KERNEL_VERSION +make -j4 +echo "Copy results to out"
\ No newline at end of file |