[asterisk-users] Cross compiling Asterisk, Dahdi..

Jean-Denis Girard jd.girard at sysnux.pf
Sat Jan 16 18:14:03 CST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tzafrir Cohen a écrit :
> On Sat, Jan 16, 2010 at 07:00:26AM -1000, Jean-Denis Girard wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi Gordon
>>
>> Gordon Henderson a écrit :
>>> Is there a proper, documented way to cross compile DAHDI and Asterisk for 
>>> a processor/system other than the one you're currently typing on?
>> Here is what I'm doing for building dahdi modules on my x86_64 system,
>> for geode target. In dahdi linux directory:
>>
>> make KVERS=2.6.33-rc3-git3-sysnux KSRC=/home/jdg/RPM/BUILD/linux
>>
>> Then install in /tmp/dahdi:
>> make DESTDIR=/tmp/dahdi ARCH=i386 KVERS=2.6.33-rc3-git3-sysnux
>> KSRC=/home/jdg/RPM/BUILD/linux install-modules
> 
> Is an explicit ARCH needed? It shouldn't have been there in the first
> place. The ARCH is caculated by Kbuild from your config (in the kernel
> tree) and there should be no need to provide it (at least as of dahdi
> 2.2).
> 
> Likewise: is KVERS really needed in that line?
> 

ARCH seems to be  needed:

[jdg at tiare dahdi-linux.svn]$ make DESTDIR=/tmp/dahdi
KSRC=/home/jdg/RPM/BUILD/linux

....
  CC [M]
/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi/dahdi_echocan_mg2.o
  LD [M]
/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi/dahdi_vpmadt032_loader.o
ld: Relocatable linking with relocations from format elf64-x86-64
(/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_64.o)
to format elf32-i386
(/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi/dahdi_vpmadt032_loader.o)
is not supported
make[2]: ***
[/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi/dahdi_vpmadt032_loader.o]
Erreur 1
make[1]: *** [_module_/home/jdg/RPM/BUILD/dahdi-linux.svn/drivers/dahdi]
Erreur 2
make[1]: quittant le répertoire « /home/jdg/RPM/BUILD/linux-2.6 »
make: *** [modules] Erreur 2


KVERS is not needed.

This is with today svn tree.
[jdg at tiare dahdi-linux.svn]$ svnversion
7918


Thanks,
- --
Jean-Denis Girard

SysNux                  Systèmes  Linux  en Polynésie française
http://www.sysnux.pf/   Tél: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAktSVksACgkQuu7Rv+oOo/gxEQCeJSJDm9LwbYqaNN/3rSmvES11
QqUAnRuMY7NNRAIJcwlZMTvxJuuJ7KFx
=E+1B
-----END PGP SIGNATURE-----



More information about the asterisk-users mailing list