On Wed, Mar 29, 2006 at 05:55:04PM -0800, Brian Litzinger wrote:
> 
> I'm running a chrooted environment on an Opteron system.
> 
> In that chrooted environment I develop for a pentium-m machine.
> 
> uname -a in the chroot development environment reports 
> Linux sledge 2.6.16-gentoo #1 SMP Fri Mar 24 17:29:05 PST 2006 x86_64
> AMD Opteron(tm) Processor 240 AuthenticAMD GNU/Linux
> 
> while uname -a in the real deployed embedded environment reports
> Linux embd-uni 2.6.15-gentoo-r1 #2 Mon Mar 13 20:55:03 PST 2006 i686
> Genuine Intel(R) processor              2300MHz GenuineIntel GNU/Linux
> 
> In the chroot environment /usr/src/linux is a link to
> /usr/src/linux-2.6.15-gentoo-r1
> 
> All this is as it should be.
> 
> Everything works fine except openssl and ivtv.
> 
> openssl runs a runtime test to sense the processor architecture
> which returns x86_64 which is of course right and wrong.

Does gentoo have setarch? If you then call the build with setarch i386 ...

> ivtv runs 'uname' to try to figure out the environment to compile
> for.  And it gets it wrong.

Use the canonical KDIR variable, e.g.

make KDIR=/usr/src/linux-2.6.15-gentoo-r1

> 'uname -a' returns the running environment, not the environment
> one is building for.
> 
> You might consider looking at /usr/src/linux instead, or 
> other variables which identify the environment you are building
> for rather than the environment you are running in.
> 
> I've hacked the makefile to do work properly in my environment.
> 

-- 
Axel.Thimm at ATrpms.net

Attachment: pgpK5kzVgu0d8.pgp
Description: PGP signature

_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to