Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jul 2012 22:26:28 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        arm@freebsd.org, Warner Losh <wlosh@bsdimp.com>
Subject:   Re: TARGET_ARCH=armv6
Message-ID:  <6F881AF6-7E8C-4459-82F3-C5E7DA4C2E6C@freebsd.org>
In-Reply-To: <AB48EF09-5F83-4A29-92DE-600E58457338@freebsd.org>
References:  <FB2E340B-34DD-4CBC-B539-6996E79F37E3@freebsd.org> <1340921715.1110.100.camel@revolution.hippie.lan> <3AB368CC-BE8B-4058-A342-763B8C073800@bsdimp.com> <576FE101-93B7-46D6-B38D-A28EF18CFFC2@freebsd.org> <AB48EF09-5F83-4A29-92DE-600E58457338@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jul 4, 2012, at 4:51 PM, Tim Kientzle wrote:

> Attached patch adds full support to the projects/armv6 tree for
> building with TARGET_ARCH=3Darmv6 (*instead of* TARGET_CPUTYPE).
>=20
> I intend to commit this to the armv6 tree after I finish some more =
test builds (likely a few days).
>=20
> Most of this is copied from Warner's work[0], though I've filled in a
> few additional pieces.  To wit:
> * GCC defaults to arm1176jz-s processor instead of StrongARM
> * GCC defines __FreeBSD_ARCH_armv6__  and sys/param.h sets =
MACHINE_ARCH to armv6 when it sees this.  This persists the 'armv6' =
architecture setting through native rebuilds.
> * gas defaults to ARM_ARCH_V6K
> * uname -p returns 'armv6'
> * make -V MACHINE_ARCH defaults to 'armv6'
> * WANT_TP_ADDRESS is now assumed for any processor < ARMv6K (as set by =
the compiler's CPU settings)
>=20
> The other renaming and refactoring I proposed recently isn't yet =
complete here; I want to make sure this is stable and get it committed =
before I churn the tree again.  ;-)

Hoping to commit this weekend.  Any feedback or
testing would be much appreciated.

I would also appreciate help with fixing clang:
   * Right now, TARGET_ARCH=3Darmv6 doesn't build clang.
   * clang doesn't support armv6-unknown-freebsd10.0
   * I have no idea how to use clang to cross-build the armv6 tree =
(which will obviously be needed if clang is ever going to replace gcc).

Tim




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6F881AF6-7E8C-4459-82F3-C5E7DA4C2E6C>