Browse files

Update docs and scripts for --overlay-dir usage

  • Loading branch information...
1 parent e0ecf77 commit 2dbd2693373cc42e18b0530e35b910ba8ed55957 @mika mika committed Oct 25, 2011
Showing with 13 additions and 7 deletions.
  1. +6 −5 docs/kernel-build.txt
  2. +7 −2 scripts/build-kernel.sh
View
11 docs/kernel-build.txt
@@ -3,16 +3,17 @@ Instructions how to rebuild the Grml kernel
Install relevant software:
- apt-get install build-essential gcc gcc-4.5 kernel-package make libncurses5-dev
+ apt-get install build-essential gcc gcc-4.6 kernel-package make libncurses5-dev
Then make sure gcc points to the according gcc version.
-Adjust maintainer and email fields in /etc/kernel-pkg.conf.
+Adjust maintainer and email fields in /etc/kernel-pkg.conf
+(maintainer := grml.org team, email := kernel@grml.org).
Assuming you have grml-kernel.git checkout in directory grml-kernel,
set environment variables (adjust if necessary):
- KVERS="2.6.38"
+ KVERS="3.1.0"
GRMLKVERS="$KVERS-0grml.01"
ARCH=$(dpkg --print-architecture)
@@ -22,8 +23,8 @@ Assuming you downloaded and verified the upstream kernel source then run:
cd linux-${KVERS}
for patch in ../grml-kernel/${KVERS}/[0-9]* ; patch -p1 < $patch
patch -p1 < ../grml-kernel/${KVERS}/${ARCH}/5000_grml-kernelversion.patch
- cp ../grml-kernel/config/config-2.6.38-grml64 .config
- KVERS="$GRMLKVERS" ../grml-kernel/scripts/build-kernel.sh
+ cp ../grml-kernel/config/config-3.1.0-grml64 .config
+ KVERS="$GRMLKVERS" ../grml-kernel/scripts/build-kernel.sh --overlay-dir ../grml-kernel/kernel-package-override
Finally build all external modules, like (please adjust KERNELVERSION for
32bit (-grml) and 64bit (-grml64)):
View
9 scripts/build-kernel.sh
@@ -7,14 +7,19 @@
################################################################################
if [ -z "$KVERS" ] ; then
- echo "Usage example: KVERS=2.6.38-grml.00 $0" >&2
+ echo "Usage: KVERS=3.1.0-grml.00 $0 [<make-kpkg-options>]
+
+Usage example:
+
+ KVERS=3.1.0-grml.00 $0 --overlay-dir ~/kernel/kernel-package-override
+" >&2
exit 1
fi
# make sure we have a clean tree:
make-kpkg clean
-make-kpkg --revision "$KVERS" --us --uc --initrd --rootcmd fakeroot \
+make-kpkg --revision "$KVERS" --us --uc --initrd $* --rootcmd fakeroot \
kernel-image kernel-headers kernel-doc kernel-source
## END OF FILE #################################################################

0 comments on commit 2dbd269

Please sign in to comment.