[zaptel-commits] tzafrir: branch 1.4 r3572 - /branches/1.4/build_tools/test_kernel_git

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Fri Dec 28 20:43:54 CST 2007


Author: tzafrir
Date: Fri Dec 28 20:43:54 2007
New Revision: 3572

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3572
Log:
A script to build zaptel vs. a kernel version from a git tree.
This should help test building vs. kernels in Linus's tree (as of
2.6.11).

Added:
    branches/1.4/build_tools/test_kernel_git   (with props)

Added: branches/1.4/build_tools/test_kernel_git
URL: http://svn.digium.com/view/zaptel/branches/1.4/build_tools/test_kernel_git?view=auto&rev=3572
==============================================================================
--- branches/1.4/build_tools/test_kernel_git (added)
+++ branches/1.4/build_tools/test_kernel_git Fri Dec 28 20:43:54 2007
@@ -1,0 +1,52 @@
+#!/bin/sh
+
+set -e
+
+GIT_URL=git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
+
+usage() {
+	echo "$0: -k kernel_dir setup"
+	echo "$0: -k kernel_dir test <kernel_version>"
+	echo "$0: -k kernel_dir test-cur <kernel_version>"
+}
+
+while getopts 'hk:' arg; do
+	case "$arg" in
+		k) kernel_dir="$OPTARG";;
+		h) usage; exit 0;;
+		*) usage; exit 1;;
+	esac
+done
+
+shift $(( $OPTIND - 1 ))
+
+command="$1"
+
+case "$command" in
+	setup) 
+		# Note: this creates the directory linux-2.6 under
+		# $kernel_dir . You should run 
+		# "-k $kernel_dir/linux-2.6 test SOMEVERSION"
+		cd $kernel_dir
+		git clone $GIT_URL
+		;;
+	test-cur)
+		ver="$2"
+		make KSRC="$kernel_dir" KVERS=$ver
+		;;
+	test)
+		ver="$2"
+		tag="v$ver"
+		curdir="$PWD"
+		cd "$kernel_dir"
+		git-checkout $tag .
+		make prepare
+		cd "$curdir"
+		make KSRC="$kernel_dir" KVERS=$ver
+		;;
+	*)
+		echo "$0: no such command $command. Aborting."
+		usage
+		exit 1
+		;;
+esac

Propchange: branches/1.4/build_tools/test_kernel_git
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: branches/1.4/build_tools/test_kernel_git
------------------------------------------------------------------------------
    svn:executable = *

Propchange: branches/1.4/build_tools/test_kernel_git
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: branches/1.4/build_tools/test_kernel_git
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the zaptel-commits mailing list