blob: 100364ccf4a6829f84f609b02520b87772bc074e (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/bash
KVER="7.0.9"
CVER=$(uname -r)
pushd $PWD
mkdir $basedir/linux
cd $basedir/linux
wget https://cdn.kernel.org/pub/linux/kernel/v7.x/linux-$KVER.tar.xz
unxz linux*
tar -xvf linux*
rm *.tar.xz
mv linux-$KVER /usr/src/
cd /usr/src/linux-$KVER
make clean
make mrproper
zcat /proc/config.gz > .config
make olddefconfig
make -j12
make modules_install
cp arch/x86/boot/bzImage /boot/vmlinuz-$KVER
rm /boot/vmlinuz
rm /boot/vmlinuz-generic
ln -s /boot/vmlinuz-$KVER /boot/vmlinuz
ln -s /boot/vmlinuz-$KVER /boot/vmlinuz-generic
cp System.map /boot/System.map-$KVER.x64
rm /boot/System.map
ln -s /boot/System.map-$KVER.x64 /boot/System.map
cp .config /boot/config-$KVER
rm /boot/config
ln -s /boot/config-$KVER /boot/config
popd
|