diff options
author | FreeArtMan <dos21h@gmail.com> | 2020-06-27 18:27:59 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2020-06-27 18:27:59 +0100 |
commit | 72adc5af0120323edb2505477e1aa8951e000916 (patch) | |
tree | f0c94ffad45a15e2c875a3f7aa78d42dfc9d4a2f /create_kernel/create_kernel.sh | |
parent | d58a8be150d72ffeb24f0aaf2195ff415608ea01 (diff) | |
download | os201-72adc5af0120323edb2505477e1aa8951e000916.tar.gz os201-72adc5af0120323edb2505477e1aa8951e000916.zip |
Update kernel
Diffstat (limited to 'create_kernel/create_kernel.sh')
-rwxr-xr-x | create_kernel/create_kernel.sh | 16 |
1 files changed, 11 insertions, 5 deletions
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 |