Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2014 09:58:19 -0600
From:      Ian Lepore <ian@FreeBSD.org>
To:        falcon17@hushmail.com
Cc:        freebsd-arm@FreeBSD.org
Subject:   Re: build world cross compile
Message-ID:  <1403452699.20883.290.camel@revolution.hippie.lan>
In-Reply-To: <20140622115633.E847320185@smtp.hushmail.com>
References:  <20140622115633.E847320185@smtp.hushmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2014-06-22 at 04:56 -0700, falcon17@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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1403452699.20883.290.camel>