[asterisk-dev] Dahdi-linux embedded

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Sep 21 10:30:48 CDT 2009


On Mon, Sep 21, 2009 at 12:06:12PM -0300, Raphael Amorim wrote:
> Hello all,
> 
> I'm trying to cross-compile dahdi-linux on PPC (mpc8315erdb),
> I'd included it to LTIB and I'm getting the following error:
> 
> sources=dahdi-linux-2.2.0.2.tar.gz
> 
> pkg_dir_name=dahdi-linux-2.2.0.2
> patches=
> prefix=/opt/freescale/rootfs/i386
> vendor=Digium
> Build path taken because: build key set, no prebuilt rpm,
> 
> rpmbuild --dbpath
> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rootfs//var/lib/rpm
> --target ppc --define '_unpackaged_files_terminate_build 0' --define
> '_target_cpu ppc' --define '__strip strip' --define '_topdir
> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm' --define
> '_prefix /usr' --define '_tmppath
> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp' --define
> '_mandir /usr/share/man' --define '_sysconfdir /etc' --define
> '_localstatedir /var' -bc --short-circuit
> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/dist/lfs-5.1/dahdi-linux/dahdi-linux.spec
> Building target platforms: ppc
> Building for target ppc
> Executing(%build): /bin/sh -e
> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943
> + umask 022
> + cd /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD
> + cd dahdi-linux-2.2.0.2
> + make
> make -C drivers/dahdi/firmware firmware-loaders
> make[1]: Entering directory
> `/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
> make[1]: Leaving directory
> `/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
> make -C /lib/modules/2.6.28-15-generic/build

You need to point dahdi-linux to the (partial) kernel source tree.

Frankly I would suggest you to try to build dahdi-linux and dadhi-tools
separately. dahdi-linux involves messing with the kernel build system.
dahdi-tools should be a better-behaving one. I suspect oyu'll need
workarounds of different nature for both.

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