From patchwork Wed Jul 9 18:27:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 368299 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 6EC0714011B for ; Thu, 10 Jul 2014 04:27:36 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9A51C8AEB8; Wed, 9 Jul 2014 18:27:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yy8N6x6r5ods; Wed, 9 Jul 2014 18:27:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 64C958AEAA; Wed, 9 Jul 2014 18:27:34 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B93931C218D for ; Wed, 9 Jul 2014 18:27:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A68503223E for ; Wed, 9 Jul 2014 18:27:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EgHpSma48Ndp for ; Wed, 9 Jul 2014 18:27:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.60.111]) by silver.osuosl.org (Postfix) with ESMTPS id D8E4A31D06 for ; Wed, 9 Jul 2014 18:27:30 +0000 (UTC) Received: from us01secmta1.synopsys.com (us01secmta1.synopsys.com [10.9.203.100]) by smtprelay.synopsys.com (Postfix) with ESMTP id 1D41510C0F6B; Wed, 9 Jul 2014 11:27:30 -0700 (PDT) Received: from us01secmta1.internal.synopsys.com (us01secmta1.internal.synopsys.com [127.0.0.1]) by us01secmta1.internal.synopsys.com (Service) with ESMTP id 114F527113; Wed, 9 Jul 2014 11:27:30 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.9.202.240]) by us01secmta1.internal.synopsys.com (Service) with ESMTP id E561D27102; Wed, 9 Jul 2014 11:27:29 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id D7AF75F0; Wed, 9 Jul 2014 11:27:29 -0700 (PDT) Received: from abrodkin-8560l.internal.synopsys.com (unknown [10.225.15.76]) by mailhost.synopsys.com (Postfix) with ESMTP id 4262C5E2; Wed, 9 Jul 2014 11:27:28 -0700 (PDT) From: Alexey Brodkin To: uclibc@uclibc.org Subject: [PATCH] test/math: add fallback to libm-test-ulps-generic logic Date: Wed, 9 Jul 2014 22:27:25 +0400 Message-Id: <1404930445-11794-1-git-send-email-abrodkin@synopsys.com> X-Mailer: git-send-email 1.9.3 Cc: Vineet Gupta X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: uclibc-bounces@uclibc.org From: Jian Peng 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: http://lists.uclibc.org/pipermail/uclibc/2011-April/045172.html Signed-off-by: Jian Peng Signed-off-by: Alexey Brodkin Cc: Vineet Gupta Cc: Anton Kolesov --- test/math/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 := $(TARGET_ARCH) +TARGET_ULP := $(if $(wildcard libm-test-ulps-$(TARGET_ARCH)),$(TARGET_ARCH),generic) ULP_SUFFIX := ifeq ($(TARGET_ARCH),mips) ULP_SUFFIX:=$(if $(CONFIG_MIPS_ISA_MIPS64R1)$(CONFIG_MIPS_ISA_MIPS64R2),64,32)