build world cross compile

Ian Lepore ian at FreeBSD.org
Sun Jun 22 15:58:32 UTC 2014


On Sun, 2014-06-22 at 04:56 -0700, falcon17 at hushmail.com wrote:
> I would like to build 10-STABLE for arm on my amd64. I found some
> instructions here
> -https://wiki.freebsd.org/A_Brief_Guide_To_Cross_Compiling_FreeBSD(i
> assume the third CPUTYPE example should be KERNCONF instead?)
> all looks good, except that make.conf and src.conf examples do not say
> a peep about arm! What are the right way of specifying these targets?
> Do I need to build a special compiler before starting?
> Thanks!

Assuming that your /etc/make.conf and src.conf are empty, all you need
to do to crossbuild for arm is:

  make builworld TARGET_ARCH=arm
  make buildkernel TARGET_ARCH=arm KERNCONF=whatever

Use armv6 for the target arch if the target is a v6 or v7 chipset.
There's no need to set CPUTYPE at all.

-- Ian




More information about the freebsd-arm mailing list