Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update docs and scripts for --overlay-dir usage

  • Loading branch information...
commit 2dbd2693373cc42e18b0530e35b910ba8ed55957 1 parent e0ecf77
Michael Prokop mika authored

Showing 2 changed files with 13 additions and 7 deletions. Show diff stats Hide diff stats

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

0 comments on commit 2dbd269

Please sign in to comment.
Something went wrong with that request. Please try again.