summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-08-24 10:05:23 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-08-24 10:05:35 +0200
commit2a322d40c23d4f2c697f561e9c1dfd3bb8d26639 (patch)
tree0cf5fec7f0888d6a17e4b0cd25e4fb9f18de13d2
parent5f734311e4fe963ea41e686b1b7bae5b0ac3260f (diff)
downloadOSELAS.Toolchain-2a322d40c23d4f2c697f561e9c1dfd3bb8d26639.tar.gz
OSELAS.Toolchain-2a322d40c23d4f2c697f561e9c1dfd3bb8d26639.tar.xz
fixup_ptxconfigs: set -D__mips=1 when building glibc headers on mips
This avoids a lot of error messages like this: sysdeps/unix/sysv/linux/mips/kernel-features.h:26:5: error: "__mips" is not defined, evaluates to 0 [-Werror=undef] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rwxr-xr-xfixup_ptxconfigs.sh2
-rw-r--r--ptxconfigs/mipsel-softfloat-linux-gnu_gcc-10.1.0_glibc-2.31_binutils-2.34_kernel-5.6-sanitized.ptxconfig2
2 files changed, 2 insertions, 2 deletions
diff --git a/fixup_ptxconfigs.sh b/fixup_ptxconfigs.sh
index 5781338..277580d 100755
--- a/fixup_ptxconfigs.sh
+++ b/fixup_ptxconfigs.sh
@@ -98,7 +98,7 @@ fixup()
PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-D__ARM_EABI__"
;;
mips*)
- PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-DBOOTSTRAP_GCC -D_MIPS_SIM=_ABIO32"
+ PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-DBOOTSTRAP_GCC -D_MIPS_SIM=_ABIO32 -D__mips=1"
;;
riscv64*)
PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-D__riscv_atomic -D__riscv_xlen=64 -D__riscv_flen=64 -D__riscv_float_abi_double"
diff --git a/ptxconfigs/mipsel-softfloat-linux-gnu_gcc-10.1.0_glibc-2.31_binutils-2.34_kernel-5.6-sanitized.ptxconfig b/ptxconfigs/mipsel-softfloat-linux-gnu_gcc-10.1.0_glibc-2.31_binutils-2.34_kernel-5.6-sanitized.ptxconfig
index de095ef..05b2651 100644
--- a/ptxconfigs/mipsel-softfloat-linux-gnu_gcc-10.1.0_glibc-2.31_binutils-2.34_kernel-5.6-sanitized.ptxconfig
+++ b/ptxconfigs/mipsel-softfloat-linux-gnu_gcc-10.1.0_glibc-2.31_binutils-2.34_kernel-5.6-sanitized.ptxconfig
@@ -50,7 +50,7 @@ PTXCONF_GLIBC_SERIES=""
PTXCONF_GLIBC_ENABLE_KERNEL="3.16"
PTXCONF_GLIBC_CONFIG_EXTRA="libc_mips_float=soft"
PTXCONF_GLIBC_CONFIG_EXTRA_CROSS="--enable-obsolete-rpc --enable-obsolete-nsl --enable-stackguard-randomization --enable-stack-protector=strong"
-PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-DBOOTSTRAP_GCC -D_MIPS_SIM=_ABIO32"
+PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-DBOOTSTRAP_GCC -D_MIPS_SIM=_ABIO32 -D__mips=1"
PTXCONF_CROSS_BINUTILS=y
PTXCONF_CROSS_BINUTILS_VERSION="2.34"
PTXCONF_CROSS_BINUTILS_DL_VERSION="2.34-119-ga72427b1ae01"