diff options
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 |