diff options
author | Patrick Simianer <p@simianer.de> | 2014-08-10 11:19:38 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-08-10 11:19:38 +0100 |
commit | 5869505d64c04c536bdcd71a197ade918c36bf1c (patch) | |
tree | 6af5232a9f2e058f15230a370a960f89871a2b74 /upgrade-kernel |
init
Diffstat (limited to 'upgrade-kernel')
-rwxr-xr-x | upgrade-kernel | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/upgrade-kernel b/upgrade-kernel new file mode 100755 index 0000000..d0ecb19 --- /dev/null +++ b/upgrade-kernel @@ -0,0 +1,25 @@ +#!/bin/sh + +# +# NOTE: call from kernel source dir +# + + +V=`pwd | ruby -e "puts STDIN.gets.split('/').last.split('-').last"` +make mrproper +cp -v ../config .config +make +sudo make modules_install +sudo cp -v arch/x86/boot/bzImage /boot/kernel +sudo /sbin/lilo +sudo rm /usr/src/linux +sudo ln -s $(pwd) /usr/src/linux +cd /home/pks/src/tp_smapi/ +sudo make install KVER=$V KSRC=/home/pks/stuff/kernelbuild/linux-$V KBUILD=/home/pks/stuff/kernelbuild/linux-$V +sudo make clean +sudo chown -R pks:pks * .* /home/pks/src/tp_smapi/ /home/pks/stuff/kernelbuild/linux-* +echo "=================" +cd /lib/modules/ +pwd +ls -lah + |