From 72adc5af0120323edb2505477e1aa8951e000916 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sat, 27 Jun 2020 18:27:59 +0100 Subject: Update kernel --- create_kernel/create_kernel.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'create_kernel/create_kernel.sh') diff --git a/create_kernel/create_kernel.sh b/create_kernel/create_kernel.sh index 7f29d01..65323fd 100755 --- a/create_kernel/create_kernel.sh +++ b/create_kernel/create_kernel.sh @@ -1,6 +1,6 @@ #!/bin/dash -KERNEL_VERSION=4.4.148 +KERNEL_VERSION=4.4.183 #KERNEL_VERSION=4.9.120 #KERNEL_VERSION=4.14.63 KERNEL_MAJOR_VERSION=v4.x @@ -13,7 +13,10 @@ _PWD=`pwd` mkdir -p $OUT_DIRECTORY/lib/modules echo "Download kernel" -wget -c $KERNEL_PAGE/pub/linux/kernel/$KERNEL_MAJOR_VERSION/linux-$KERNEL_VERSION.tar.xz +if [ ! -f linux-$KERNEL_VERSION.tar.xz ]; then + wget -c $KERNEL_PAGE/pub/linux/kernel/$KERNEL_MAJOR_VERSION/linux-$KERNEL_VERSION.tar.xz +fi + echo "Unpack kernel" tar -xvf linux-$KERNEL_VERSION.tar.xz echo "Copy config to kernel" @@ -22,8 +25,11 @@ echo "Compile kernel" cd ./linux-$KERNEL_VERSION make -j4 make INSTALL_MOD_PATH=$_PWD/$OUT_DIRECTORY/ modules_install -echo "Copy results to out" + + #output results -cd .. -cp ./linux-$KERNEL_VERSION/arch/x86_64/boot/bzImage $_PWD/$OUT_DIRECTORY \ No newline at end of file +echo "Copy results to out" +cd $_PWD +cp ./linux-$KERNEL_VERSION/arch/x86_64/boot/bzImage $_PWD/$OUT_DIRECTORY/vmlinuz-xos +cp ./linux-$KERNEL_VERSION/vmlinux $_PWD/$OUT_DIRECTORY/vmlinux-xos -- cgit v1.2.3