[dahdi-commits] tzafrir: linux/trunk r4470 - /linux/trunk/build_tools/test_kernel_git

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Sat Jun 28 11:53:06 CDT 2008


Author: tzafrir
Date: Sat Jun 28 11:53:06 2008
New Revision: 4470

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4470
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:
    linux/trunk/build_tools/test_kernel_git

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=4470&r1=4469&r2=4470
==============================================================================
--- linux/trunk/build_tools/test_kernel_git (original)
+++ linux/trunk/build_tools/test_kernel_git Sat Jun 28 11:53:06 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 dahdi-commits mailing list