BRN:Software:Build and Distribution:Linux: Difference between revisions

From
Jump to navigation Jump to search
Line 7: Line 7:
$ svn co svn://sarsvn.informatik.hu-berlin.de/BerlinRoofNet/trunk/platform/wgt634u/kernel-patches
$ svn co svn://sarsvn.informatik.hu-berlin.de/BerlinRoofNet/trunk/platform/wgt634u/kernel-patches
$ cd linux-2.6.16.13
$ cd linux-2.6.16.13
$ for p in ../kernel-patches/{generic,mips,brn}/*.patch; do patch -p1 -i $p --dry-run || { echo "Apply of patch \"$p\" failed! Exiting..."; break; }; done
$ for p in ../kernel-patches/{generic,mips,brn}/*.patch
> do if [ -r $p ]
> then patch -p1 -i $p --dry-run || { echo "Apply of patch \"$p\" failed! Exiting..."; break; }
> fi
> done


= Build =
= Build =

Revision as of 21:11, 10 September 2006

Vanilla Kernel Sources

$ KERNEL_MIRROR=ftp://ftp.kernel.org/pub/linux/kernel    # or ftp://ftp.informatik.hu-berlin.de/pub/Linux/Kernel/kernel
$ wget $KERNEL_MIRROR/v2.6/linux-2.6.16.13.tar.bz2
$ tar xjf linux-2.6.16.13.tar.bz2

Patch

$ svn co svn://sarsvn.informatik.hu-berlin.de/BerlinRoofNet/trunk/platform/wgt634u/kernel-patches
$ cd linux-2.6.16.13
$ for p in ../kernel-patches/{generic,mips,brn}/*.patch
>   do if [ -r $p ]
>     then patch -p1 -i $p --dry-run || { echo "Apply of patch \"$p\" failed! Exiting..."; break; }
>     fi
> done

Build

TODO

$ svn cat svn://sarsvn.informatik.hu-berlin.de/....../build.sh > build.sh
$ sh build.sh  # or "sh build.sh -j4" for SMP machines



Prev | Contents | Next