Fix the TARGET_ABI value clang uses. It shpuld be gnueabi on all ARM

soft-float architectures, and gnueabihf for hard-float.
This commit is contained in:
Andrew Turner 2014-10-01 12:47:25 +00:00
parent 293b5c2221
commit 3dde11c478
2 changed files with 6 additions and 6 deletions

View File

@ -337,10 +337,10 @@ XFLAGS+= -B${CROSS_BINUTILS_PREFIX}
XFLAGS+= -B${WORLDTMP}/usr/bin
.endif
.if ${TARGET} == "arm"
.if ${TARGET_ARCH:M*eb*} == ""
TARGET_ABI= gnueabi
.elif ${TARGET_ARCH} == "armv6hf"
.if ${TARGET_ARCH:M*hf*} != ""
TARGET_ABI= gnueabihf
.else
TARGET_ABI= gnueabi
.endif
.endif
TARGET_ABI?= unknown

View File

@ -22,10 +22,10 @@ CFLAGS+= -fno-strict-aliasing
TARGET_ARCH?= ${MACHINE_ARCH}
BUILD_ARCH?= ${MACHINE_ARCH}
.if (${TARGET_ARCH} == "arm" || ${TARGET_ARCH} == "armv6")
TARGET_ABI= gnueabi
.elif ${TARGET_ARCH} == "armv6hf"
.if ${TARGET_ARCH:Marm*hf*} != ""
TARGET_ABI= gnueabihf
.elif ${TARGET_ARCH:Marm*} != ""
TARGET_ABI= gnueabi
.else
TARGET_ABI= unknown
.endif