linux cross-development (was: Re: /dev/null: No such file or directory)

Alexander Leidinger Alexander at Leidinger.net
Wed Sep 20 22:55:39 PDT 2006


Quoting John E Hein <jhein at timing.com> (from Wed, 20 Sep 2006 13:48:48 -0600):

> Alexander Leidinger wrote at 21:24 +0200 on Sep 20, 2006:
>  > Any ideas how to provide a chroot while not losing the fallthrough if
>  > not chrooted (and we try to identify other files/dirs where we want a
>  > fallthrough)?
>
> That smells a little like unionfs.

Feel free to provide a description how to achieve this. I don't see it  
at first look. And I don't like to mount stuff at installation time or  
to request to mount something to get it working.

> FWIW, I'd like to see a resurrection of linux_devtools or some
> equivalent.

Feel free to work on it. See below for your concerns regarding  
automated building.

> From a system building perspective, it seems difficult to build a
> system in an automated way (as in a product) that needs to build apps
> compiled for linux.
>
> We build packages in a FreeBSD chroot and pkg_add -p them into an
> image hierarchy (which is then copied to the target media, typically a
> Compact Flash).
>
> So, if we wanted to deploy a system that has linux_base and some
> linux-compiled apps, we'd have to build the linux_base .tgz package in
> our build chroot, pkg_delete it, then install linux_dist in order to
> compile linux apps (there are some closed linux libs we need to link

You don't need to delete the linux_base. linux_dist-gentoo-stage3  
installs into /usr/local/gentoo-stage3. As long as you do a chroot  
into the linux directory, you will not have any problem. If you don't  
do a chroot, you have to be careful to not pick up FreeBSD stuff. This  
may or may not work. If you are very careful, you can do a  
cross-build, but if you do real cross-development, you should really  
do a chroot (else you have to verify in the worst case for every bug  
that no FreeBSD stuff is picked up instead).

> with otherwise we'd just compile the apps as freebsd).  Maybe there's
> an easier way, but if not, it would require changes to our build
> infrastructure here.

Feel free to describe how it looks currently.

I try to get time to write up some docs in the wiki which someone from  
doc@ can convert to docbook for the handbook. Feel free to nag me  
about it after some days.

Bye,
Alexander.

-- 
Air pollution is really making us pay through the nose.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137



More information about the freebsd-emulation mailing list