summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-08-25 21:32:43 (GMT)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-08-25 21:32:43 (GMT)
commit939014ddce98bd07c774815a7f0cf379c8bde38d (patch)
tree10ece1f5456f0478a5c6fde9957f1d55e22b9938
parentde633ed60fca535f51a4f6af24c8899321a3d69c (diff)
mips: add NaN support
-rw-r--r--Rules.mak2
-rw-r--r--extra/Configs/Config.mips15
-rw-r--r--ldso/ldso/Makefile.in3
3 files changed, 20 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index e616e39..cd343f5 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -409,6 +409,8 @@ ifeq ($(TARGET_ARCH),mips)
CPU_CFLAGS-$(CONFIG_MIPS_N64_ABI)+=-mabi=64
CPU_CFLAGS-$(CONFIG_MIPS_O32_ABI)+=-mabi=32
CPU_CFLAGS-$(CONFIG_MIPS_N32_ABI)+=-mabi=n32
+ CPU_CFLAGS-$(CONFIG_MIPS_NAN_LEGACY)+=-mnan=legacy
+ CPU_CFLAGS-$(CONFIG_MIPS_NAN_2008)+=-mnan=2008
CPU_LDFLAGS-y += $(CPU_CFLAGS)
endif
diff --git a/extra/Configs/Config.mips b/extra/Configs/Config.mips
index 919e80c..8137d8b 100644
--- a/extra/Configs/Config.mips
+++ b/extra/Configs/Config.mips
@@ -32,6 +32,21 @@ config CONFIG_MIPS_N64_ABI
endchoice
+choice
+ prompt "Target NAN Encoding"
+ default CONFIG_MIPS_NAN_LEGACY
+ help
+ This is the NAN Encoding you want to use. Chose either Legacy
+ or 2008.
+
+config CONFIG_MIPS_NAN_LEGACY
+ bool "LEGACY"
+
+config CONFIG_MIPS_NAN_2008
+ bool "2008"
+
+endchoice
+
config UCLIBC_USE_MIPS_PREFETCH
bool "Use MIPS prefetch optimization for memcpy/memset"
default y
diff --git a/ldso/ldso/Makefile.in b/ldso/ldso/Makefile.in
index dde6a53..993aeb9 100644
--- a/ldso/ldso/Makefile.in
+++ b/ldso/ldso/Makefile.in
@@ -82,6 +82,9 @@ $(ldso:.$(ABI_VERSION)=): $($(UCLIBC_LDSO_NAME)_OUT)/$(UCLIBC_LDSO_NAME)_so.a
$(call link.so,$(ldso_FULL_NAME),$(ABI_VERSION))
# link for backward compatibility
(cd $(top_builddir)lib; ln -sf $(UCLIBC_LDSO_NAME).so.$(ABI_VERSION) $(UCLIBC_LDSO_NAME).so.0 )
+ifeq ($(CONFIG_MIPS_NAN_2008),y)
+ (cd $(top_builddir)lib; ln -sf $(UCLIBC_LDSO_NAME).so.$(ABI_VERSION) $(UCLIBC_LDSO_NAME)-mipsn8.so.0)
+endif
$($(UCLIBC_LDSO_NAME)_OUT)/$(UCLIBC_LDSO_NAME)_so.a: $(ldso-y)
$(Q)$(RM) $@