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

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Sat Jun 28 11:41:08 CDT 2008


Author: tzafrir
Date: Sat Jun 28 11:41:08 2008
New Revision: 4372

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4372
Log:
* Generate the modpost program to be able to complete a build.
* Clean, in order to guarantee everything belongs to this version/build .
* "test" is now "build".

Modified:
    branches/1.4/build_tools/test_kernel_git

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=4372&r1=4371&r2=4372
==============================================================================
--- branches/1.4/build_tools/test_kernel_git (original)
+++ branches/1.4/build_tools/test_kernel_git Sat Jun 28 11:41:08 2008
@@ -12,7 +12,8 @@
 	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 test                  Test-build"
+	echo "  $me build                 Test-build"
+	echo "  $me git <git command>     Run <git command>"
 	echo ""
 	echo "  $me versions [pattern]    List available versions."
 }
@@ -52,6 +53,11 @@
 		cd "$kernel_dir"
 		git pull
 		;;
+	git)
+		cd "$kernel_dir"
+		shift
+		git "$@"
+		;;
 	versions)
 		cd "$kernel_dir"
 		git tag -l $2 | cut -c2-
@@ -61,15 +67,18 @@
 		tag="v$kernel_ver"
 		cd "$kernel_dir"
 		git-reset --hard "$tag"
+		make clean
 		make defconfig prepare
+		make SUBDIRS=scripts # generate scripts/mod/modpost
 		set_var kernel_ver "$kernel_ver"
 		;;
-	test)
+	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 .
 		# 2. Any extra command-line parameter.
 		shift
+		make KSRC="$kernel_dir" KVERS=$kernel_ver $MAKE_PARAMS clean
 		make KSRC="$kernel_dir" KVERS=$kernel_ver $MAKE_PARAMS "$@"
 		;;
 	*)




More information about the zaptel-commits mailing list