cross-compiling for arm6 with poudriere - has anybody done that?

Auelien Martin 01aurelien at gmail.com
Thu Nov 14 11:03:25 UTC 2013


Hi Christopher,

I wanted to do the same thing, but normally you can't cross compile 
package in poudriere as it said in the website. (line 4)

https://fossil.etoilebsd.net/poudriere/doc/trunk/doc/index.wiki

Apparently as discussed in freebsd-fr there are some patches to allow 
jail to reconize ARM binary, but it's complicated.

The best way seems to use pouriere in qemu ARM box :)

Cheers,
Aurelien

Le 11/11/2013 10:08 PM, Christopher J. Ruwe a écrit :
> I am cc'ing the persons originally describing a solution for my
> problem.
>
> I would like to cross-compile packages for FreeBSD on a Raspberry Pi
> (arm6) on a stronger machine.
>
> Various web-sources describe how to cross-compile kernel and world for
> arm6/RaspberryPi [1,2,3]. Roughly a year ago, reportedly, ports have
> been build successfully in chrooted environments, but have failed in
> poudriere jails [4,5].
>
> I have not found any more recent information on that approach. From
> [5] i gather the issue in [4] has been fixed, so I will try to employ
> poudriere to build packages for my raspberry on a stronger machine.
>
> My idea is outlined as such: Build a 9.2-RELEASE jail, cross-compile a
> arm6 obj tree in that jail and set poudriere make.conf options to
> TARGET=arm TARGET_ARCH=armv6 TARGET_CPUARCH=armv6
> PATH=/usr/obj/arm.armv6/usr/src/tmp/usr/bin:${PATH} CONFIGURE_HOST=amd64
> STRIP_CMD=true
>
> Has anybody tried a similar approach or can comment on my idea? Should
> that be pointless, I do not want to waste much time trying.
>
>
> [1] crochet-freebsd: https://github.com/kientzle/crochet-freebsd
> [2] FreeBSD developer's notebook: http://kernelnomicon.org/?p=275
> [3] How to install FreeBSD on a Raspberry Pi (or: How to cross compile
>      FreeBSD/arm): http://ogris.de/howtos/freebsd-raspberry.html
> [4] yerenkow at gmail.com, Ports cross-compiling:
>      http://lists.freebsd.org/pipermail/freebsd-hackers/2012-September/040428.html
> [5] crees at freebsd.org, Ports cross-compiling:
>      http://lists.freebsd.org/pipermail/freebsd-hackers/2012-November/041106.html
>
>
> Many thanks,






More information about the freebsd-ports mailing list