blob: 6818dcc1c19a597fb5aebee70915deb5caf033cd (
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
42
|
#!/bin/bash
basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
pushd
mkdir $basedir/linux
cd $basedir/linux
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.15.2.tar.xz
unxz linux*
tar -xvf linux*
cd linux*
make clean
make mrproper
zcat /proc/config.gz > .config
make olddefconfig
make -j12
make modules_install
cp arch/x86/boot/bzImage /boot/vmlinuz-generic-6.15.2
dirstr=$(ls /boot | grep vmlinuz-6.15.2)
if [[ $dirstr != '' ]]; then
initrdcmd=$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 6.15.2 | tail -1)
$initrdcmd
cp System.map /boot/System.map-6.15.2.x64
cp .config /boot/config-6.15.2
rm /boot/vmlinuz
ln -s /boot/vmlinuz-generic-6.15.2 /boot/vmlinuz
rm /boot/System.map
ln -s /boot/System.map-6.15.2.x64 /boot/System.map
rm /boot/config
ln -s /boot/config-6.15.2.x64 /boot/config
fi
popd
|