summaryrefslogtreecommitdiff
path: root/upgrade-kernel
blob: d0ecb190a5fe9bcba931c6fb9b6227da01518862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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