List Info

Thread: testing zaptel vs. git kernel tree (git help wanted)




testing zaptel vs. git kernel tree (git help wanted)
country flaguser name
Israel
2007-12-29 18:08:14
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/branch
es/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.cohenxorcom.com
+972-50-7952406           mailto:tzafrir.cohenxorcom.com
http://www.xorcom.com 
iax:guestlocal.xorcom.com/tzafrir

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: testing zaptel vs. git kernel tree (git help wanted)
country flaguser name
Italy
2007-12-30 03:00:17
On Sun, 30 Dec 2007 02:08:14 +0200
Tzafrir Cohen <tzafrir.cohenxorcom.com> wrote:

> 
> 
> 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.
> 


	setver)
		kernel_ver="$2"
		tag="v$kernel_ver"
		cd "$kernel_dir"
		git-checkout $tag .


Just use:
	git-reset --hard $tag

instead of:
	git-checkout $tag .

-- 
	Paolo Ornati
	Linux 2.6.24-rc6-gc68cb23d on x86_64

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )