diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-06-28 16:41:08 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-06-28 16:41:08 +0000 |
commit | a1d74bf981f01d9fcfbb146f9b0ffbf4f7c6a487 (patch) | |
tree | 9200570593653c0c7d6bcd3135cefae8b9d3a8b5 /build_tools | |
parent | 1282b2db1e85a0a6b12dcfe087bb614c19a71073 (diff) |
* 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.digium.com/svn/zaptel/branches/1.4@4372 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/test_kernel_git | 13 |
1 files changed, 11 insertions, 2 deletions
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 <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 @@ 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 "$@" ;; *) |