Support simple soft floating point abi for CPUTYPE in arm. Complex
types to follow.
This commit is contained in:
parent
225636dccb
commit
b1101485df
@ -108,21 +108,24 @@ _CPUCFLAGS = -march=${CPUTYPE}
|
||||
#XXX: gcc doesn't seem to like -mcpu=xscale, and dies while rebuilding itself
|
||||
#_CPUCFLAGS = -mcpu=xscale
|
||||
_CPUCFLAGS = -march=armv5te -D__XSCALE__
|
||||
. elif ${CPUTYPE} == "armv6"
|
||||
. elif ${CPUTYPE:M*soft*} != ""
|
||||
_CPUCFLAGS = -mfloat-abi=softfp
|
||||
. elif ${CPUTYPE} == "armv6"
|
||||
# Not sure we still need ARM_ARCH_6=1 here.
|
||||
_CPUCFLAGS = -march=${CPUTYPE} -DARM_ARCH_6=1
|
||||
. elif ${CPUTYPE} == "cortexa"
|
||||
. elif ${CPUTYPE} == "cortexa"
|
||||
_CPUCFLAGS = -march=armv7 -DARM_ARCH_6=1 -mfpu=vfp
|
||||
. elif ${CPUTYPE:Marmv[4567]*} != ""
|
||||
. elif ${CPUTYPE:Marmv[4567]*} != ""
|
||||
# Handle all the armvX types that FreeBSD runs:
|
||||
# armv4, armv4t, armv5, armv5te, armv6, armv6t2, armv7, armv7-a, armv7ve
|
||||
# they require -march=. All the others require -mcpu=.
|
||||
_CPUCFLAGS = -march=${CPUTYPE}
|
||||
. else
|
||||
. else
|
||||
# Common values for FreeBSD
|
||||
# arm:
|
||||
# arm: (any arm v4 or v5 processor you are targetting)
|
||||
# arm920t, arm926ej-s, marvell-pj4, fa526, fa626,
|
||||
# fa606te, fa626te, fa726te
|
||||
# armv6:
|
||||
# armv6: (any arm v7 or v8 processor you are targetting and the arm1176jzf-s)
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user