diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-13 14:22:15 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-13 14:22:15 -0500 |
commit | eddac80ad33525714d779914b2ce3650b483244a (patch) | |
tree | 850dd7bcd666fd42cde233a288dd9f2673a73420 | |
parent | 7ce930e842a4cecb2620af2bc6a63c5a67d798a8 (diff) |
Add linux kernel script. Copies kernel config from /sources and builds.
-rw-r--r-- | chapter10/linux.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chapter10/linux.sh b/chapter10/linux.sh new file mode 100644 index 0000000..d443dc8 --- /dev/null +++ b/chapter10/linux.sh @@ -0,0 +1,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}" |