From 0afa850b574e4ecdbee4218a6cff0f3c8ba349a9 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sat, 28 Jun 2008 16:53:06 +0000 Subject: * 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". git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4470 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- build_tools/test_kernel_git | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'build_tools') diff --git a/build_tools/test_kernel_git b/build_tools/test_kernel_git index 59c196d..a0610cf 100755 --- a/build_tools/test_kernel_git +++ b/build_tools/test_kernel_git @@ -12,7 +12,8 @@ usage() { echo " $me checkout Pull a kernel version into " echo " $me update Update (pull) the kernel tree." echo " $me setver Set the kernel version" - echo " $me test Test-build" + echo " $me build Test-build" + echo " $me git Run " echo "" echo " $me versions [pattern] List available versions." } @@ -52,6 +53,11 @@ case "$command" in 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 @@ case "$command" in 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 "$@" ;; *) -- cgit v1.2.3