summaryrefslogtreecommitdiff
path: root/build_tools/test_kernel_git
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-06-28 21:19:34 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-06-28 21:19:34 +0000
commit7764117df27f0f74fb13f326b9203a8b3170d15a (patch)
tree9b99a6d468b390e2d9144fa9279d2be666ae0d5b /build_tools/test_kernel_git
parenta1d74bf981f01d9fcfbb146f9b0ffbf4f7c6a487 (diff)
build_tools/builder - a script that uses build_tools/test_kernel_git to
test-build various kernels. test_kernel_git: small fixes. Mainly using 'make distclean' in setver. Closes issue #12135 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4375 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'build_tools/test_kernel_git')
-rwxr-xr-xbuild_tools/test_kernel_git15
1 files changed, 11 insertions, 4 deletions
diff --git a/build_tools/test_kernel_git b/build_tools/test_kernel_git
index a0610cf..e6bf083 100755
--- a/build_tools/test_kernel_git
+++ b/build_tools/test_kernel_git
@@ -12,6 +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 versions Print available versions"
+ echo " $me version Print current (kernel) version"
echo " $me build Test-build"
echo " $me git <git command> Run <git command>"
echo ""
@@ -62,14 +64,20 @@ case "$command" in
cd "$kernel_dir"
git tag -l $2 | cut -c2-
;;
+ version)
+ cd "$kernel_dir"
+ echo "Configured: $kernel_ver"
+ echo -n "Actual: "
+ git describe | cut -c2-
+ ;;
setver)
kernel_ver="$2"
tag="v$kernel_ver"
cd "$kernel_dir"
git-reset --hard "$tag"
- make clean
- make defconfig prepare
- make SUBDIRS=scripts # generate scripts/mod/modpost
+ make distclean
+ make defconfig modules_prepare
+ #make SUBDIRS=scripts # generate scripts/mod/modpost
set_var kernel_ver "$kernel_ver"
;;
test|build)
@@ -78,7 +86,6 @@ case "$command" in
# 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 "$@"
;;
*)