summaryrefslogtreecommitdiff
path: root/scripts/build-and-install
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-06-01 21:45:35 +0200
committerpks <pks@pks.rocks>2021-06-01 21:45:35 +0200
commit5d3fc478d5e2f7d49a96f54d2606dab9589592f3 (patch)
treee75a6e9b17e8196887c7f53047a1b002861a3b22 /scripts/build-and-install
parentf59636f30da2b02aad79cfc8b0678af949ca7214 (diff)
prepare script
Diffstat (limited to 'scripts/build-and-install')
-rwxr-xr-xscripts/build-and-install16
1 files changed, 10 insertions, 6 deletions
diff --git a/scripts/build-and-install b/scripts/build-and-install
index 0bd0314..98d63f1 100755
--- a/scripts/build-and-install
+++ b/scripts/build-and-install
@@ -16,10 +16,10 @@ make -j $(nproc)
sudo make modules_install
sudo ln -s /lib/modules/$V-* /lib/modules/$V
-# cp to /boot + lilo
+# cp to /boot + run lilo
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 sha1sum /boot/kernel > /tmp/kernel.sha1
+sudo mv /tmp/kernel.sha1 /boot/kernel.sha1
sudo /sbin/lilo
# /usr/src/linux symlink
@@ -29,16 +29,20 @@ find . -type f | xargs chmod a+r
find . -executable | xargs chmod a+x
sudo ln -s $(pwd) /usr/src/linux
+pushd .
+
# tp smapi
-cd ~/.local/src/kernel/tp_smapi/
+cd ../extra_modules/tp_smapi/
sudo make HDAPS=0 install KVER=$V KSRC=/home/pks/.local/src/kernel/linux-$V KBUILD=/home/pks/.local/src/kernel/linux-$V
sudo make clean
# phc intel
-cd ~/.local/src/kernel/phc_intel/
+cd ../phc_intel/
KERNELRELEASE=$V KERNELSRC=../linux-$V make
sudo make install
make clean
sudo depmod
-sudo chown -R pks:pks * .* ~/.local/src/kernel/tp_smapi/ ~/.local/src/kernel/linux-*
+popd
+
+sudo chown -R pks:pks * .* ../extra_modules