Zeta:Howtos

From Freehackers

Jump to: navigation, search


[edit] How to merge a new version of the kernel

  • Start from a clean zeta/linux source tree. Check the version with
 svn diff # check it's clean
 head Makefile # check version
  • Apply one (and only one) patch to updated
 bzcat  <pathtopatchfile>/patch-2.6.21.bz2  | patch -p 1
  • Check for rejected hunks, and fix all conflicts. Remove all *.rej
  • add new files and remove deleted files. Check carefully not to add any generated files.
 svn st | grep ^\! | cut -b3- | xargs svn rm # remove. this is the easy one
 svn st | grep ^\?.\*\\.c$ | cut -b3- | xargs svn add # *.c can be added safely
 svn st | grep ^\? > toadd; vi toadd; # CAREFUL CHECK
 cut -b3- < toadd | xargs svn add # add
 svn st | less # DOUBLE CHECK what was done.

Typical files to ignore are

 toadd Module.symvers *.orig *.rej *.a
  • update config file
 make oldconfig
  • Check compilation and port zeta. It often involves new structures or new files in asm-zeta
 make clean
 make
  • Once it compiles fine, with no new alarming warnings, check the resulting kernel in emulator
 cd ../emulator/gui
 ./zeg

and fix remaining issues

  • Double check and commit
 (in linux/)
 svn ci
Personal tools