build world cross compile

falcon17 at hushmail.com falcon17 at hushmail.com
Mon Jun 23 18:34:47 UTC 2014


Worked great. thanks!
On June 22, 2014 at 8:58 AM, "Ian Lepore"  wrote: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