summaryrefslogtreecommitdiff
path: root/upgrade-kernel
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-04-03 09:28:04 +0200
committerpks <pks@pks.rocks>2021-04-03 09:28:04 +0200
commit8875dffba9e74a8c57b19506eb50f89b32300297 (patch)
treec062bce0cbf9c2427ed44a1fc285415de09214da /upgrade-kernel
parent7fb7c1563a969665c93cb1f0c6173bbcb25b88a5 (diff)
upgrade-kernel: nicer phc_intel
Diffstat (limited to 'upgrade-kernel')
-rwxr-xr-xupgrade-kernel9
1 files changed, 4 insertions, 5 deletions
diff --git a/upgrade-kernel b/upgrade-kernel
index 819ae76..910d1f7 100755
--- a/upgrade-kernel
+++ b/upgrade-kernel
@@ -9,7 +9,7 @@ echo "Building Kernel @$V"
make mrproper
cp -v ../config .config
-make
+make -j $(nproc)
# modules
# FIXME: This will fail when there already exists a directory for version $V
@@ -35,10 +35,9 @@ sudo make HDAPS=0 install KVER=$V KSRC=/home/pks/.local/src/kernel/linux-$V KBUI
sudo make clean
# phc intel
-cd ~/.local/src/kernel/phc_intel/phc-intel-pack-rev32
-export KERNELSRC=/home/pks/.local/src/kernel/linux-$V
-make
-sudo mv phc-intel.ko /lib/modules/$V/extra/phc_intel.ko
+cd ~/.local/src/kernel/phc_intel/
+KERNELRELEASE=$V KERNELSRC=../../linux-$V make
+sudo make install
make clean
sudo depmod