From eddac80ad33525714d779914b2ce3650b483244a Mon Sep 17 00:00:00 2001 From: William Harrington Date: Tue, 13 Apr 2021 14:22:15 -0500 Subject: Add linux kernel script. Copies kernel config from /sources and builds. --- chapter10/linux.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 chapter10/linux.sh (limited to 'chapter10') 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}" -- cgit v1.2.3-54-g00ecf