From owner-freebsd-arm@FreeBSD.ORG Sat Jul 7 05:26:38 2012 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85FE41065673; Sat, 7 Jul 2012 05:26:38 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 5153F8FC12; Sat, 7 Jul 2012 05:26:38 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id q675QSfq008795; Sat, 7 Jul 2012 05:26:28 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id 38brj299kdvf4k8g7e8wkh4xfa; Sat, 07 Jul 2012 05:26:28 +0000 (UTC) (envelope-from kientzle@freebsd.org) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: Date: Fri, 6 Jul 2012 22:26:28 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <6F881AF6-7E8C-4459-82F3-C5E7DA4C2E6C@freebsd.org> References: <1340921715.1110.100.camel@revolution.hippie.lan> <3AB368CC-BE8B-4058-A342-763B8C073800@bsdimp.com> <576FE101-93B7-46D6-B38D-A28EF18CFFC2@freebsd.org> To: Tim Kientzle X-Mailer: Apple Mail (2.1278) Cc: arm@freebsd.org, Warner Losh Subject: Re: TARGET_ARCH=armv6 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jul 2012 05:26:38 -0000 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