instructions to build linux kernel and modules for SPBLinux

preparations:
- unpack this folder into /usr/src
- remove/rename existing kernel trees:
  - /usr/src/linux-... (version of this package) must not exist
  - symlink /usr/src/linux (or folder /usr/src/linux) must not exist
  - /usr/src/aufs_cvs should not exist
  
prepare kernel tree
- cd into /usr/src/spb2-linux-... (version of this package)
- run ./spb-prepare-kernel
  - this fetches linux kernel sources, 
    unpacks, patches and configures the kernel
  
build kernel and modules included in kernel tree
- if build system is gentoo based (=official SPBLinux build system)
  run: genkernel --no-clean all
  else cd into /usr/src/linux and
  run: make bzImage && make modules && make modules_install
- to build a custom kernel run make menuconfig before building kernel and modules
  (then use inside SPBLinux command update_modules: http://www.spblinux.de/wiki/wacka.php?wacka=SpbUpdateKernel)

build external modules (module source outside linux kernel tree)
- cd into /usr/src/spb2-linux-... (version of this package)
- run: ./spb-external-modules clean
  (unpacks, patches, compiles modules)
- use shift+pageup to verify that all modules have been built properly
- some modules have to be compiled by gentoo build system
  - see output of ./spb-external-modules script
  
