Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Mar 2016 20:50:34 -0700
From:      Mark Millard <markmi@dsl-only.net>
To:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   CPUTYPE=armv7-a with CPUTYPE=soft (as an example)?
Message-ID:  <87A2F38F-159C-4CFC-B8AA-4177080662EC@dsl-only.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87A2F38F-159C-4CFC-B8AA-4177080662EC>