From patchwork Tue Apr 24 15:23:42 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: 134128 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2404560lji; Tue, 24 Apr 2018 08:54:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpHaEa8YYJAKb75WBzRjSecdOP9fHhHb2oISVS0wNlIGRj01kj9lHpC/1TZxt91KaD+VJZO X-Received: by 10.12.177.101 with SMTP id r34mr3081732qvc.48.1524585286143; Tue, 24 Apr 2018 08:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524585286; cv=none; d=google.com; s=arc-20160816; b=i0ddTGzJxvYMWOHw3BhL9ed69fzYNpPwZAfun47pxBY4/MJnNwNtH+EDc8I6vsorrQ jb7LAq9/+sBM8Uz/ZBG063AidA8lBC5Q2PxM32e02PC8VuN1SXPPojd9RM4xXGouRvv2 FTLzvcWxyZyj281wTyC+1N/PD6wgXVq5SQ+UPk/4hQC/PAYZl0qurSEAiz/9DYKHKyIC wmrkRoCmhxuho6P24PF79bxGnLBEhm2/T0g4TW0G3CWBArtKNvGwuWAqSbjdIS5j7CsF 7z9ru9gqf614CxVQkRrN5w4RaiW3I39ezbcnnnLHb8m6Se3/8MZUwQZA4AzL7P5W3KfP vWeg== 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=dUQ4NYkm1FDSpeJVW1GGWk4eHQ3Ws+KnbwIdcaDrcgo=; b=yn6/oH6OF0bVQYOKasv/urrHMgLaPPuFArtjCNiDkOkDcSMizqQTZ3JTpXsSZvk8v6 CeJXrbnoD+ixbj5aVnRO/F8kYTClBZHAdZdMZVvc2ofXDU9NfeQfzv5ypzW4yIgCV4d2 wk7WsXX74h3AxomNcByjLHbvINAuQrnUbP2OHUTgX2v7Z4837jYoMvvZhFj41h8RjMqV ISTbrS5NO54lD4RDmCsIxOA4C4WJRYy+pcJnboJTPHNnzuktQZ8dz5BfwGwHFtwoDMUy v/S/XIugstgiAEb/wBYm89/+tqOX5Dn4VdzFRv1nfw3KS5F8wmeGBq5Lp45cDiS72xoV pmFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bD+2YSCT; 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 n8-v6si2661540qtc.341.2018.04.24.08.54.45 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:54:46 -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=bD+2YSCT; 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]:59257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0HF-0004x1-Hu for patch@linaro.org; Tue, 24 Apr 2018 11:54:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwR-0005wk-En for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwO-0001Ld-5q for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:15 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:40619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwN-0001Kd-VI for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:12 -0400 Received: by mail-wm0-x243.google.com with SMTP id j5so1609397wme.5 for ; Tue, 24 Apr 2018 08:33:11 -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=dUQ4NYkm1FDSpeJVW1GGWk4eHQ3Ws+KnbwIdcaDrcgo=; b=bD+2YSCTCrdZr5o7jbiwET4g+m/p2kBHAtHonEN9Y6+ydp6wqqKl0kEWVlpDnoKeYj 2ntSSBOD7sZUU1HV1aEUJIPPlYoOzC88NGCJHzD0iKZe8pwDEb4ZHRRttw/tR8wU91Mt uLA0OU6Pcdt0O2Ba9ilOLPkr1jsOCoVV/smdE= 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=dUQ4NYkm1FDSpeJVW1GGWk4eHQ3Ws+KnbwIdcaDrcgo=; b=gvCASnH/luq1lfC1JMwPcGghJj8CGVc6DQkdL999a3OnCq59GuWTaDOoRE4ecgBpX1 2pjZDZEPc1TnimLs76iDmcPXxk0YL4Qw4GxffUwtuVbzuJfaryN4CmVWVRaXrXNGulSt nFpVspWx9xi6FkC90B3MLlL65BL/IlY1fAo3+1zCBJUug1O2vh6T6m7OCT9vv+K2EPwB kzi4I7b2uFyOPO5PCq2bifR1NTlFdeZILVlOHQ0pciiJcyN7VeTswnDBjELaDbm6ej/2 bKPPqvVJzD6Decm8M5inwsCVAWbvODJ3vBo0X72SKH6DO/eUAtJHF1R/qIk/MF6LF8th /Fsw== X-Gm-Message-State: ALQs6tB5QiMwc2XLjmtWuM2YoVhNJGXy4pvPP3kJRjp6aIUC4YAXBc0r cdJ29MR8qcWT+EBc2eM7GGJCUw== X-Received: by 10.28.32.132 with SMTP id g126mr13787717wmg.52.1524583990756; Tue, 24 Apr 2018 08:33:10 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t46-v6sm16750487wrc.95.2018.04.24.08.33.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:09 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 2EA263E0BF4; Tue, 24 Apr 2018 16:24:07 +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: Tue, 24 Apr 2018 16:23:42 +0100 Message-Id: <20180424152405.10304-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-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:c09::243 Subject: [Qemu-devel] [PATCH v3 23/46] 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 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 80ccad3d7b..27086c3f2b 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)