From aede3abad16f9a8e9b4984e43b0c4ef3ec683468 Mon Sep 17 00:00:00 2001 From: Corey O'Connor Date: Sat, 2 Oct 2010 18:43:36 -0700 Subject: [PATCH] Cleanup build script. Basic documentation --- build.sh | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) delete mode 100644 welcome diff --git a/build.sh b/build.sh index 1ab8ce8..5b806f1 100644 --- a/build.sh +++ b/build.sh @@ -1,14 +1,27 @@ -#/bin/bash +#!/bin/bash +# For this build script to work properly the following must be true: +# - This script is run from it's contianing directory. +# - This containing directory is directly under your scratchbox home directory. +# - Under this script's contianing directory is a tarball of the stock 2.6.28 kernel. +# +# Here is a direct link to the tarball: +# http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.tar.bz2 +# +# The build will produce a directory called kernel-bfs-build (directly under your scratchbox home +# directory) which will contain the debs for the kernel. +# +set -e + rm -rf ../kernel-bfs-build -mkdir -p ../kernel-bfs-build +mkdir -p ../kernel-bfs-build/git_master/ +tar -jxf linux-2.6.28.tar.bz2 -C ../kernel-bfs-build/ +git archive master | tar -x -C ../kernel-bfs-build/git_master/ + cd ../kernel-bfs-build && ( - set -e - git clone ../kernel-bfs git - find git -depth -name '.git' | xargs rm -rf - tar -zxf ../kernel-bfs/kernel-power_2.6.28.orig.tar.gz - cp -r git/kernel-power-2.6.28/debian kernel-2.6.28/ + cp -r git_master/kernel-power-2.6.28/debian linux-2.6.28/ + exit; /scratchbox/login <