aboutsummaryrefslogtreecommitdiffstats
path: root/chapter10/linux.sh
blob: d443dc8a7458c73551f492117096bb5ca419779e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -e

make mrproper
cp -v ../kernelconfig .config
yes "" | make oldconfig
make "${MAKEFLAGS}"
make modules_install
cp -iv arch/x86_64/boot/bzImage /boot/linux-"${VERSION}"
cp -iv System.map /boot/System.map-"${VERSION}"
cp -iv .config /boot/config-"${VERSION}"

install -dv /usr/share/doc/linux-"${VERSION}"
cp -rv Documentation/* /usr/share/doc/linux-"${VERSION}"