[git commit] test/math: add fallback to libm-test-ulps-generic logic

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Jul 24 19:56:31 UTC 2014

commit: http://git.uclibc.org/uClibc/commit/?id=c02bc5763ba9c8f8b464bca89fba28e091ce1ffc
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Under test/math/, there is libm-test-ulps-generic used as fallback
in case that libm-test-ulps-$(TARGET_ARCH) does not exist.

This is required for arches that don't have ULPS yet.

Original patch from Jian Peng was found here:

Signed-off-by: Jian Peng <jipeng2005 at gmail.com>
Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>

Cc: Vineet Gupta <vgupta at synopsys.com>
Cc: Anton Kolesov <akolesov at synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
 test/math/Makefile.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/math/Makefile.in b/test/math/Makefile.in
index 914fc75..b495c0b 100644
--- a/test/math/Makefile.in
+++ b/test/math/Makefile.in
@@ -31,7 +31,7 @@ PERL := /usr/bin/perl
 MDEPS := $(wildcard test-*.c)
 $(MDEPS): libm-test.c
+TARGET_ULP := $(if $(wildcard libm-test-ulps-$(TARGET_ARCH)),$(TARGET_ARCH),generic)
 ifeq ($(TARGET_ARCH),mips)

More information about the uClibc-cvs mailing list