From 9a1bc7d1dbee1cca01462041fcf9c3b2f64a8334 Mon Sep 17 00:00:00 2001 From: ZoRo Date: Thu, 20 Sep 2018 19:06:54 +0100 Subject: Initial commit --- create_kernel/create_kernel.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 create_kernel/create_kernel.sh (limited to 'create_kernel/create_kernel.sh') 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 -- cgit v1.2.3