summaryrefslogtreecommitdiffstats
path: root/fixup_ptxconfigs.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-08-24 11:44:25 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-08-27 11:45:22 +0200
commit96a0297eb8354c60fa1af3402710b8bb7f09bb7e (patch)
treeb998b9f2565c508db05deacb116385b5e249007d /fixup_ptxconfigs.sh
parentfecf3d97ea388eb9b4b7f529070dc6052871ca52 (diff)
downloadOSELAS.Toolchain-96a0297eb8354c60fa1af3402710b8bb7f09bb7e.tar.gz
OSELAS.Toolchain-96a0297eb8354c60fa1af3402710b8bb7f09bb7e.tar.xz
fixup_ptxconfigs: define -D__ARM_ARCH=* for glibc headers on ARM
It's not strictly necessary but it avoids a lot of error messages like this: ./sysdeps/arm/sysdep.h:49:4: error: #error unknown arm architecture ./sysdeps/arm/sysdep.h:53:5: error: "__ARM_ARCH" is not defined [-Werror=undef] They are not fatal but it's easier to find the real problems without these messages. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'fixup_ptxconfigs.sh')
-rwxr-xr-xfixup_ptxconfigs.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/fixup_ptxconfigs.sh b/fixup_ptxconfigs.sh
index 99d0538..95e190d 100755
--- a/fixup_ptxconfigs.sh
+++ b/fixup_ptxconfigs.sh
@@ -94,8 +94,14 @@ fixup()
# - mips hack
#
case "${PTXCONF_GNU_TARGET}" in
- arm*gnueabi)
- PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-D__ARM_EABI__"
+ arm-v5te-linux-gnueabi)
+ PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-D__ARM_EABI__ -D__ARM_ARCH=5"
+ ;;
+ arm-1136jfs-linux-gnueabi*)
+ PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-D__ARM_EABI__ -D__ARM_ARCH=6"
+ ;;
+ arm-v7*linux*)
+ PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-D__ARM_EABI__ -D__ARM_ARCH=7"
;;
mips64*)
PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-DBOOTSTRAP_GCC -D_MIPS_SIM=_ABI64 -D__mips=64"