From patchwork Thu Apr 19 13:58:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 133781 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp689770ljf; Thu, 19 Apr 2018 07:15:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/cLFShtXetEoVEBhL22dESq286JULy8r6GBt916zMyXahM35sJmLr+iq6FnrPHSi+U/Bgm X-Received: by 2002:aed:3111:: with SMTP id 17-v6mr6454231qtg.267.1524147332358; Thu, 19 Apr 2018 07:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524147332; cv=none; d=google.com; s=arc-20160816; b=q8b5C8e+2YiTF3CiQ3LbSwJI9wtS6JNIZORoHBb/F/yiHTYWtJZh02QNwr2EX07Xi7 CW02nYevsRy/03hBRVgsdHCB1/jK9qPIZJ15gtFHCQjt3WM/CksA5m35Fa3IsHzQR+fO xQ1H0hsLNbwkTQN89gjmpXJF2+TqatGVo3gaINXufg7DD+pSF9FMqkfogoxXNmVqDEkN YoeeRX+ye+3N9+xJeIYOGLlX8P0nJvEq1Zol5LjWDqO7Ab5+DgSAJDL7UArd76+SW4Jg 6ZCLzgjlviNAbs/sI1+08bDtsa3S0FbJESByJwetrF435z94/IIb9lKxEsSlUMyWTy5G zLag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=6cCILsw7Ds0t9cXFsW29dGcUt526P7FLE3AZ1xhalc8=; b=arvu+hZes3afbTQntjQUWXCg1crtSvOc0XV+g88Hhm3UMHuxK+WMfFRoOoxCVj1Wvb AFGDnmGdK6zZ3R5m+NsVdX4R4s1L/TeIp7vTHoUbpRBNqb3CCWih54P5Gdn6HlPpdley r49AdaqoGdwfHzvDWxV70fy1kIzG2nrj/pPdUFouNbs4k057aCOIxiCFAT8eilZDlroT c6MWu+ONpNO4m9g8cl1ImayDZ2h7krrzPxHhhkKZ0SGl3n5CgPLKwcJAcv+iinVsC3VV ku///IP677oT0PZE060G6N5Lo5N2znMt4Z5gfW2OlhDZNzltz19xlkpbaoproXmEnGFH Gmkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=N5bPXqPd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id i38-v6si5111887qti.173.2018.04.19.07.15.32 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 19 Apr 2018 07:15:32 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=N5bPXqPd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9ALT-000397-6s for patch@linaro.org; Thu, 19 Apr 2018 10:15:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9A5r-0006Ab-BZ for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9A5q-0002h2-CD for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:23 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:34856) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9A5q-0002er-52 for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:22 -0400 Received: by mail-wr0-x241.google.com with SMTP id w3-v6so14354563wrg.2 for ; Thu, 19 Apr 2018 06:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6cCILsw7Ds0t9cXFsW29dGcUt526P7FLE3AZ1xhalc8=; b=N5bPXqPdxVfQ1kV6ZV5NW+fclEcOVgiElwXBWDIXVE61zIUW9FCsljhbc34XNIDr17 2Y2MZIIXakx2IZEnhacwIBIkiKrgcYNTU/w6nvrMeb9MZrprVAF+ElrcyxOqDSa/pnlP 8LrcLE9RYzf6kj3Pu/TMueIG7RmWJqt6eMzKk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6cCILsw7Ds0t9cXFsW29dGcUt526P7FLE3AZ1xhalc8=; b=KmRM+Jgypb2DA/maLpQRxbyKjVbZfIxmzp+ZrYojxjBqX0uGV+73CY9epNOtOMIlg9 PA6K5RBtj4GLxZPqyUfJx911pAOCol56IMFlvNNaALsNmMRm+qE+ZaVP49hB++CSR/iW ZJ1dlLzOQAJthhyM5JAG9poBECphJ+tSPHGaSwjdoYAEo7++EhR+EKSok8Fk8/rl9m4H U8nZ4y43spWIpzOTVHKIbxT4wjVc9SZPHgTV88kAf9CzK27siFaYwuu2tWz3ashIplF7 GYZjABM4jq4TSjKSuOo1uu979uTQ2P5e3T4sn21fkmmznQCN4UgEi7kBrYnKcrkETlDQ IWzw== X-Gm-Message-State: ALQs6tB9OQfTeIjbqJASaDzY4V98QDS25YDOAUnq8A68ZmvKYOGglAkD JUA3XA6qCOuCJHGCFLNC+kSPsA== X-Received: by 2002:adf:a144:: with SMTP id r4-v6mr4698229wrr.217.1524146360972; Thu, 19 Apr 2018 06:59:20 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id r19-v6sm3627203wrg.8.2018.04.19.06.59.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 06:59:17 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 2EE4B3E04D2; Thu, 19 Apr 2018 14:59:03 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Thu, 19 Apr 2018 14:58:40 +0100 Message-Id: <20180419135901.30035-23-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419135901.30035-1-alex.bennee@linaro.org> References: <20180419135901.30035-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v2 22/43] tests/tcg/x86_64: add Makefile.target X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The sources for x86_64 are shared in the i386 directory which will be included thanks to TARGET_BASE_ARCH. However not all sources build so we need to filter out the ones we can't build in the 64 bit world. Signed-off-by: Alex Bennée --- tests/tcg/i386/Makefile.target | 2 +- tests/tcg/x86_64/Makefile.target | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/x86_64/Makefile.target -- 2.17.0 diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index a6cc76664c..3a2736616c 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -7,7 +7,7 @@ VPATH += $(I386_SRC) I386_SRCS=$(notdir $(wildcard $(I386_SRC)/*.c)) I386_TESTS=$(I386_SRCS:.c=) - +I386_ONLY_TESTS=$(filter-out test-i386-ssse3, $(I386_TESTS)) # Update TESTS TESTS+=$(I386_ONLY_TESTS) diff --git a/tests/tcg/x86_64/Makefile.target b/tests/tcg/x86_64/Makefile.target new file mode 100644 index 0000000000..74f170b9ed --- /dev/null +++ b/tests/tcg/x86_64/Makefile.target @@ -0,0 +1,15 @@ +# -*- Mode: makefile -*- +# +# x86_64 tests - included from tests/tcg/Makefile.target +# +# Currently we only build test-x86_64 and test-i386-ssse3 from +# $(SRC)/tests/tcg/i386/ +# + +X86_64_TESTS=$(filter-out $(I386_ONLY_TESTS), $(TESTS)) +X86_64_TESTS+=test-x86_64 +TESTS:=$(X86_64_TESTS) + +test-x86_64: LDFLAGS+=-lm -lc +test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h + $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)