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

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Sat Jun 28 17:05:48 CDT 2008


Author: tzafrir
Date: Sat Jun 28 17:05:47 2008
New Revision: 4377

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4377
Log:
Integrate changes from Zaptel. builder is now indeed independent of
dahdi/zaptel .

Modified:
    branches/1.4/build_tools/builder
    branches/1.4/build_tools/test_kernel_git

Modified: branches/1.4/build_tools/builder
URL: http://svn.digium.com/view/zaptel/branches/1.4/build_tools/builder?view=diff&rev=4377&r1=4376&r2=4377
==============================================================================
--- branches/1.4/build_tools/builder (original)
+++ branches/1.4/build_tools/builder Sat Jun 28 17:05:47 2008
@@ -127,7 +127,7 @@
 init)
 	mkdir -p $LOGS_DIR
 	cat <<EOF | $SQLITE $DB
-CREATE TABLE runs(name TEXT PRIMARY KEY, time INTEGER DEFAULT CURRENT_TIMESTAMP, zap_ver TEXT);
+CREATE TABLE runs(name TEXT PRIMARY KEY, time INTEGER DEFAULT CURRENT_TIMESTAMP, driver_ver TEXT);
 CREATE TABLE results(name TEXT, system TEXT, kvers TEXT, result INTEGER, fail_type TEXT, log TEXT);
 EOF
 	mkdir -p $LOGS_DIR
@@ -136,12 +136,12 @@
 build)
 	cd $BASE_DIR
 	shift
+	
 	if [ "$*" != '' ]; then KERNELS_localhost="$*"; fi
-	#make update
-	make version.h
-	zap_ver=`awk -F'"' '/ZAPTEL_VERSION/{print $2}' version.h`
+	driver_ver=`$BUILD_SCRIPT version_driver`
 	build_name=`date '+%Y%m%d-%H%M%si'`
-	echo "INSERT INTO runs (name, zap_ver) VALUES ('$build_name', '$zap_ver');" | $SQLITE $DB
+
+	echo "INSERT INTO runs (name, driver_ver) VALUES ('$build_name', '$driver_ver');" | $SQLITE $DB
 
 	for host in $HOSTS; do
 		eval kernels="\$KERNELS_$host"

Modified: branches/1.4/build_tools/test_kernel_git
URL: http://svn.digium.com/view/zaptel/branches/1.4/build_tools/test_kernel_git?view=diff&rev=4377&r1=4376&r2=4377
==============================================================================
--- branches/1.4/build_tools/test_kernel_git (original)
+++ branches/1.4/build_tools/test_kernel_git Sat Jun 28 17:05:47 2008
@@ -14,6 +14,7 @@
 	echo "  $me setver <kernel_ver>   Set the kernel version"
 	echo "  $me versions              Print available versions"
 	echo "  $me version               Print current (kernel) version"
+	echo "  $me version_driver        Print the version of Zaptel"
 	echo "  $me build                 Test-build"
 	echo "  $me git <git command>     Run <git command>"
 	echo ""
@@ -70,6 +71,11 @@
 		echo -n "Actual: "
 		git describe | cut -c2-
 		;;
+	version_driver)
+		version_h=include/dahdi/version.h
+		make $version_h >/dev/null
+		awk -F'"' '/ZAPTEL_VERSION/{print $2}' $version_h
+		;;
 	setver)
 		kernel_ver="$2"
 		tag="v$kernel_ver"
@@ -77,13 +83,12 @@
 		git-reset --hard "$tag"
 		make distclean
 		make defconfig modules_prepare
-		#make SUBDIRS=scripts # generate scripts/mod/modpost
 		set_var kernel_ver "$kernel_ver"
 		;;
 	test|build)
 		# you can pass extra parameters to the make command in
 		# two ways:
-		# 1. Set th value of MAKE_PARAMS in git_test.conf .
+		# 1. Set the value of MAKE_PARAMS in git_test.conf .
 		# 2. Any extra command-line parameter.
 		shift
 		make KSRC="$kernel_dir" KVERS=$kernel_ver $MAKE_PARAMS "$@"




More information about the zaptel-commits mailing list