[svn-commits] tzafrir: linux/trunk r4474 - /linux/trunk/build_tools/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sat Jun 28 17:02:28 CDT 2008
Author: tzafrir
Date: Sat Jun 28 17:02:27 2008
New Revision: 4474
URL: http://svn.digium.com/view/dahdi?view=rev&rev=4474
Log:
* builder now works under dahdi as well.
* ADded test_git_kernel command 'driver_version' Reporting it is of no
busyniss of the builder script.
Modified:
linux/trunk/build_tools/builder
linux/trunk/build_tools/test_kernel_git
Modified: linux/trunk/build_tools/builder
URL: http://svn.digium.com/view/dahdi/linux/trunk/build_tools/builder?view=diff&rev=4474&r1=4473&r2=4474
==============================================================================
--- linux/trunk/build_tools/builder (original)
+++ linux/trunk/build_tools/builder Sat Jun 28 17:02:27 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: linux/trunk/build_tools/test_kernel_git
URL: http://svn.digium.com/view/dahdi/linux/trunk/build_tools/test_kernel_git?view=diff&rev=4474&r1=4473&r2=4474
==============================================================================
--- linux/trunk/build_tools/test_kernel_git (original)
+++ linux/trunk/build_tools/test_kernel_git Sat Jun 28 17:02:27 2008
@@ -7,13 +7,14 @@
usage() {
me=`basename $0`
- echo "$me: test building Zaptel vs. kernel from git"
+ echo "$me: test building DAHDI vs. kernel from git"
echo "Usage:"
echo " $me checkout <kerneldir> Pull a kernel version into <kerneldir>"
echo " $me update Update (pull) the kernel tree."
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 DAHDI"
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'"' '/DAHDI_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 svn-commits
mailing list