TARGET_ARCH=armv6

Tim Kientzle kientzle at freebsd.org
Wed Jul 4 23:52:10 UTC 2012


Attached patch adds full support to the projects/armv6 tree for
building with TARGET_ARCH=armv6 (*instead of* TARGET_CPUTYPE).

I intend to commit this to the armv6 tree after I finish some more test builds (likely a few days).

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)

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.  ;-)

Cheers,

Tim

[0] I have removed the EXT_COMP part of Warner's patches; they're unrelated to what I'm trying to accomplish here.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: armv6-target-arch.patch
Type: application/octet-stream
Size: 19810 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20120704/20e95510/armv6-target-arch.obj
-------------- next part --------------




More information about the freebsd-arm mailing list