MCProxy

Version 6 (modified by woelke, 13 years ago) (diff)

--

Kernel Compilation Walkthrough

This script is an example how to kompile the Linux kernel 3.0.0-13.

  1. You need the following tools
     ???
    
  2. Add first we have to download a linux-image
      versn="3.0.0"
      vers="13"
      ktype="variante"
      apt-get source linux-image-$versn-$vers-$ktype
    
  1. Go into the new Directory and copy your current kernel config file and configurate it.
      cd "linux-$versn"
      cp /boot/config-$(uname -r)  .config
      make menuconfig
    
  1. Generate your own kernel variante and edit some files
      cp debian.master/abi/$versn-$vers/amd64/generic debian.master/abi/$versn-$vers/amd64/variante
      cp debian.master/abi/$versn-$vers/amd64/generic.modules debian.master/abi/$versn-$vers/amd64/variante.modules
      cp debian.master/control.d/vars.generic debian.master/control.d/vars.variante 
      gedit debian.master/etc/getabis 
      gedit debian.master/rules.d/amd64.mk
    

In the file gatabis is a line which start with "getall amd64 ..." add "variante" add the end of these line.

  --debian.master/etc/getabis
  getall amd64 generic server virtual ==> getall amd64 generic server virtual variante

In the file amd64.mk is a line which start with "flavours ..." add "variante" add the end of these line.

  --debian.master/rules.d/amd64.mk
  flavours	= generic server virtual ==> gflavours	= generic server virtual variante