[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building i386 as target on amd64



On Thu, 2007-12-27 at 12:25 +0300, Max Dmitrichenko wrote:
> Hi!
> 
> I use amd64 as host and want to build rootfs for i386 target. 

Use debootstrap to create an i386 chroot on your amd64 box. You do not
need a cross compiler or toolchain.

> I know
> that i386 can hardly be considered as embedded platform, but at my
> work we have such embedded systems based on i386 platform.
> 
> Two questions:
>  1) Is it the same as simply install Debian on i386? I guess
>     not, because Emdebian tries to avoid unnecessary packages
>     and other stuff, so I think this is what I want.
>  2) Is such configuration supported? 

Not explicitly because it doesn't involve cross building the packages so
most of the code in the scripts is simply not used. I have no idea if
the rootfs packages will build for i386 when using the current Emdebian
patches. emdebian-tools was improved during the Linz conference to have
better support for native building (which is what amd64<->i386 actually
is) but I've no idea if the built packages would work.

> Because when I ran emsetup
>     it told me, that I need a toolchain for i386 but it can't be
>     build.

I'll see if the emsetup script can be made more intelligent and detect
when a toolchain is a waste of time.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: