[asterisk-dev] testing zaptel vs. git kernel tree (git help wanted)
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sat Dec 29 18:08:14 CST 2007
Hi
I wrote a script to test building zaptel vs. various kernel versions.
That script could be found in zaptel 1.4 svn:
http://svn.digium.com/svn/zaptel/branches/1.4/build_tools/test_kernel_git
Usage:
1. Initial setup:
build_tools/test_kernel_git setup /full/path/to/kernel/dir
This will get an up-to-date kernel tree to
/full/path/to/kernel/dir/linux-2.6 .
It took here around 15 minutes.
2. Switching to a specific kernel version:
Every version has a tag in that tree. So to use kernel 2.6.23 I switch
to tag v2.6.23 . But see comments below.
build_tools/test_kernel_git setver 2.6.23
You must run this before running a test-build.
After switching to the tag it will run 'make defconfig; make prepare'.
The tree is then basically ready for compiling. Linking will not work
perfectly well, as I have not fully built the tree. OTOH, the whole
thingg takes just around 2 minutes here.
3. running a test build.
build_tools/test_kernel_git test
This will build zaptel vs. that specific tree.
The rationale here is to be able to test multiple kernel versions with
just one source tree. This should expose most build-time errors.
Sadly it seems I don't understand well how to work with tags in git.
After switching to an older tag I get plenty of "modified" files and I
get strange build errors. So I'd appreciate someone with some experince
with git to give this script a sanity check.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-dev
mailing list