From owner-freebsd-toolchain@freebsd.org Thu Mar 24 03:57:17 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8DD88AD6836 for ; Thu, 24 Mar 2016 03:57:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-156.reflexion.net [208.70.211.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 340D81CA5 for ; Thu, 24 Mar 2016 03:57:16 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 2177 invoked from network); 24 Mar 2016 03:50:55 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 24 Mar 2016 03:50:55 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.80.0) with SMTP; Wed, 23 Mar 2016 23:50:39 -0400 (EDT) Received: (qmail 15170 invoked from network); 24 Mar 2016 03:50:39 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 24 Mar 2016 03:50:39 -0000 X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 0D20B1C43BC for ; Wed, 23 Mar 2016 20:50:29 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: CPUTYPE=armv7-a with CPUTYPE=soft (as an example)? Message-Id: <87A2F38F-159C-4CFC-B8AA-4177080662EC@dsl-only.net> Date: Wed, 23 Mar 2016 20:50:34 -0700 To: FreeBSD Toolchain Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2016 03:57:17 -0000 Between: > Q: But what if I need to build a system with soft float ABI under 11? >=20 > You can still do that. CPUTYPE=3Dsoft has been created for this = scenario, as well as to generate libraries for WITH_LIBSOFT. It's = anticipated that this will live for the entire FreeBSD 11 branch, but go = away in FreeBSD 12. and: > share/mk/bsd.cpu.mk : >=20 > . elif ${MACHINE_CPUARCH} =3D=3D "arm" > . if ${CPUTYPE} =3D=3D "xscale" > #XXX: gcc doesn't seem to like -mcpu=3Dxscale, and dies while = rebuilding itself > #_CPUCFLAGS =3D -mcpu=3Dxscale > _CPUCFLAGS =3D -march=3Darmv5te -D__XSCALE__ > . elif ${CPUTYPE} =3D=3D "armv6" > _CPUCFLAGS =3D -march=3D${CPUTYPE} -DARM_ARCH_6=3D1 > . elif ${CPUTYPE} =3D=3D "cortexa" > _CPUCFLAGS =3D -march=3Darmv7 -DARM_ARCH_6=3D1 -mfpu=3Dvfp > . elif ${CPUTYPE:Marmv[4567]*} !=3D "" > # Handle all the armvX types that FreeBSD runs: > # armv4, armv4t, armv5, armv5te, armv6, armv6t2, armv7, armv7-a, = armv7ve > # they require -march=3D. All the others require -mcpu=3D. > _CPUCFLAGS =3D -march=3D${CPUTYPE} > . else > # Common values for FreeBSD > # arm: > # arm920t, arm926ej-s, marvell-pj4, fa526, fa626, > # fa606te, fa626te, fa726te > # armv6: > # arm1176jzf-s, generic-armv7-a, cortex-a5, cortex-a7, = cortex-a8, > # cortex-a9, cortex-a12, cortex-a15, cortex-a17, cortex-a53, = cortex-a57, > # cortex-a72, exynos-m1 > _CPUCFLAGS =3D -mcpu=3D${CPUTYPE} > . endif how will one do a armv7-a (CPUTYPE=3Darmv7-a) soft-float ABI = (CPUTYPE=3Dsoft) system build if one cares to? (armv7-a is just a = specific example of the general issue. But someone might target a RPI2B = with armv7-a specified and also wanting the soft float ABI for some = reason.) (The question is generic for me for now, I'm not out to do so at this = point or any time soon, may be never.) =3D=3D=3D Mark Millard markmi at dsl-only.net