blob: 93afdb550b2f670439abccaa706f7be7946c91cd (
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
26
|
#!/bin/sh
if [ ! -f .config ]; then echo "Call from kernel source dir!"; exit; fi
V=`pwd | ruby -e "puts STDIN.gets.split('/').last.split('-')[1..-1].join '-'"`;
make mrproper
cp -v ../config .config
make
sudo make modules_install
sudo cp -v arch/x86/boot/bzImage /boot/kernel
sudo md5sum /boot/kernel > /tmp/kernel.md5
sudo mv /tmp/kernel.md5 /boot/kernel.md5
sudo /sbin/lilo
sudo rm /usr/src/linux
find . -type d | xargs chmod a+rx
find . -type f | xargs chmod a+r
find . -executable | xargs chmod a+x
sudo ln -s $(pwd) /usr/src/linux
cd ~/.local/src/kernel/tp_smapi/
sudo make HDAPS=1 install KVER=$V KSRC=/home/pks/.local/src/kernel/linux-$V KBUILD=/home/pks/.local/src/kernel/linux-$V
sudo make clean
sudo chown -R pks:pks * .* /home/pks/.local/src/kernel/tp_smapi/ /home/pks/.local/src/kernel/linux-*
echo "================="
cd /lib/modules/
pwd
ls -lah
|