2 # For this build script to work properly the following must be true:
3 # - This script is run from it's contianing directory.
4 # - This containing directory is directly under your scratchbox home directory.
5 # - Under this script's contianing directory is a tarball of the stock 2.6.28 kernel.
7 # Here is a direct link to the tarball:
8 # http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.tar.bz2
10 # The build will produce a directory called kernel-bfs-build (directly under your scratchbox home
11 # directory) which will contain the debs for the kernel.
15 rm -rf ../kernel-bfs-build
16 mkdir -p ../kernel-bfs-build/git_master/
17 tar -jxf linux-2.6.28.tar.bz2 -C ../kernel-bfs-build/
18 git archive master | tar -x -C ../kernel-bfs-build/git_master/
20 cd ../kernel-bfs-build && (
21 cp -r git_master/kernel-bfs-2.6.28/debian linux-2.6.28/
22 /scratchbox/login <<BUILD
23 cd kernel-bfs-build/linux-2.6.28
24 DEB_BUILD_OPTIONS="parallel=4" dpkg-buildpackage -r"fakeroot -u" -uc -us -nc