From patchwork Tue Aug 3 11:02:35 2021 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: 490895 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp535431jap; Tue, 3 Aug 2021 04:02:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP6LbfSFvNccvKV+9EEPPYUIkscktnTC+QtqMHplMX8pC3A1ZIA+YepQW5nYSV0TgtFCtb X-Received: by 2002:a17:907:75cd:: with SMTP id jl13mr19429394ejc.327.1627988576316; Tue, 03 Aug 2021 04:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627988576; cv=none; d=google.com; s=arc-20160816; b=AAxGjoaQIqomKaBkhCV9f/Sz5kFaWn+XcQsuPJYtdcw3bCZkX6t4dNvqn+VQJnqMNG Vy3HuEoeVC4P48Q3hF9ttk2qQGvex6QpS4J9xx+V1DLzJCtypIBFqn42YRw2SVR+okKR RMhXVFglt0U9seVKrS/qEjhBJ+c0nqJmlVRv8Mg5KwHUHRrNrfvjLDLI0jvK/qQrKstr shzTR/2vxelRrLpfoc19RjY/huk/TeTEuPkHgZ8y3gEXyrkzbjCaThoe/TZMcr1R/sM8 L+W66BeK7wl8UfubzwPtCSqvDaMwbMLLbD3m28WZCxOS1M3oP0OTmgGTIisQSmtZfNQm lshQ== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=ZOnyiACEMsiPUwmm/qUkHA1mDhN36kHA6oD+2+/bm8Y=; b=fyrK1gc7iV2bZBKH53I1Rw2j+72tF/UoRgBcVbG/GmZ1J+GJtoeRNaISb+lev45aYD v3ffEcdH/i5ymk076+7VoORj90fXP8ahkr4CB/+828BWyK32T2ZMiHGsnTT9G2lJOR05 78hqSrLpeyMSn7NuQzZagPrHHAUGK5VovrZiBbynxdyJKMiUl8WvbMaVVFcXjDj8XVJW b1z26PsIL9C/L0S+wouX4ArjXpsBMBLdEHYReJMss1K4ndA++LuDWf/q3ZqlxQ5DffEe 36t3YDaw2h61CMneTA7u8rusLXtYddAn+rD2q5b3x2jK915/4wRClCWr4aLG5oNYMuEp Z7GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=toBrj59k; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id w3si12895648ejc.483.2021.08.03.04.02.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Aug 2021 04:02:56 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=toBrj59k; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:53006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAsCF-0005ei-8x for patch@linaro.org; Tue, 03 Aug 2021 07:02:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAsC4-0005eZ-Qk for qemu-devel@nongnu.org; Tue, 03 Aug 2021 07:02:44 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:39740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAsC3-0003fw-9x for qemu-devel@nongnu.org; Tue, 03 Aug 2021 07:02:44 -0400 Received: by mail-wr1-x432.google.com with SMTP id b11so19527971wrx.6 for ; Tue, 03 Aug 2021 04:02:41 -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=ZOnyiACEMsiPUwmm/qUkHA1mDhN36kHA6oD+2+/bm8Y=; b=toBrj59kGf9w37oAIVaHR1N0N924d3A0BpwPJ9dnrq1v5DA8lMIxmtBBd7tJdBGciP wpX9+5CnaZw6ZEA8tcJjQXMPjtTS2XSWZowsKB4saS19AWcDYLztvDvlEVP+Po8BJ8cj JYXAugJoBaEhLaXpaj9COjtYF9LLsz0FZt7Q/bfoxfop1y436YgK8VO1iD/FATJ82Lzl pbZiLUwqA/BjYYj376eglxm11NFYdlS5076V1aKk5ZeWgNl+VqRP6b1DokPZfBGWL6no fIsMJK3g2/EymqVvAapVRtKKNWOMMNbMujCPi74SZbFxSktkQ5Fm15dsWqX4AbgvAESs LZFQ== 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=ZOnyiACEMsiPUwmm/qUkHA1mDhN36kHA6oD+2+/bm8Y=; b=TUQ1pn0GFTaGNByPk6NSQnonqq33iJXtbxk6yG7uSOAhUyKo17ARjybVUxKJ7aB1kX dqcskX4rJj6Vjwx3T39vULdMLu6Pn2y+dxI2hbb9jq2PJdB7Uh5cz4awKDJVrj8XguaT DZaLrroLyvxOu5TOzGnj6RtBc8fPzBeOMA4YVkXCeqom5nw7HA6yZM5B7j66RnCMPoKu MABn+cMetT626m0j6Suw3QaVnFtbODPTX3xKx/1jpiud2uu6NT086ED8IaevneLxbupq u9RMUXbEy8oc9ESJwSAhSUy9zY4nXSarrOBsXcHANPq2EEtmIF/1OnWBOERrREA3hXJj gAVw== X-Gm-Message-State: AOAM531aifHCf8BQmriscy/h9NARDgPQ2Iy3+6Zcph0gQ1vqfks3+2xq w93+H0gvWBsASM9ASZVTrtjOsw== X-Received: by 2002:adf:e10c:: with SMTP id t12mr22116068wrz.36.1627988559678; Tue, 03 Aug 2021 04:02:39 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id o17sm14481441wru.11.2021.08.03.04.02.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 04:02:38 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E87131FF98; Tue, 3 Aug 2021 12:02:37 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [RFC PATCH 1/3] configure: don't override the selected host test compiler if defined Date: Tue, 3 Aug 2021 12:02:35 +0100 Message-Id: <20210803110237.1051032-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210803110237.1051032-1-alex.bennee@linaro.org> References: <20210803110237.1051032-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, imp@bsdimp.com, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" There are not many cases you would want to do this but one is if you want to use a test friendly compiler like gcc instead of a system compiler like clang. Either way we should honour the users choice if they have made it. Signed-off-by: Alex Bennée Cc: Warner Losh --- configure | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.30.2 diff --git a/configure b/configure index 9a79a004d7..eadc434144 100755 --- a/configure +++ b/configure @@ -1691,8 +1691,11 @@ case "$cpu" in # No special flags required for other host CPUs esac -eval "cross_cc_${cpu}=\$cc" -cross_cc_vars="$cross_cc_vars cross_cc_${cpu}" +if eval test -z "\${cross_cc_$cpu}"; then + eval "cross_cc_${cpu}=\$cc" + cross_cc_vars="$cross_cc_vars cross_cc_${cpu}" +fi + QEMU_CFLAGS="$CPU_CFLAGS $QEMU_CFLAGS" # For user-mode emulation the host arch has to be one we explicitly From patchwork Tue Aug 3 11:02:36 2021 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: 490898 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp537113jap; Tue, 3 Aug 2021 04:04:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcnyIhhAWO/g73Apq9lW84wDMagdwQs8rUurDzDy3csW4Nb+7tEAnsz+TLCh8Ypyi26HuT X-Received: by 2002:a05:6102:c48:: with SMTP id y8mr12734644vss.14.1627988695259; Tue, 03 Aug 2021 04:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627988695; cv=none; d=google.com; s=arc-20160816; b=ta230mlVfbTl+gHXBs88QhxcCSU/s6yOGcc4BXVBIU4hbqou7sgqVVJJtkqATRvHJl Zy4Aekf5+8HQWjdlnACU2oK1IArx/Xg77qlNMdfv2tzDm4dtUVCFU5FwjPrXi6GLZ2yR 8dZhVWv4065FtBV6pmLp2Ss5GiFRuz/51nQLXvTHuaVyj0/ANSvH4tprZejNkZrS14QB 67njM6PwHT1aKL9lWJHNxDi8tbl+VR5BHaq1wZXK7ehIuucUTG3iObEAhUEF45GOSQVf rt+KdmAAbB2aNEMRL5NnOqFG93+/t7GhMrJcsrEFWeAYfToetcTNKJrQtq6eFM1dbvVH 4mRA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Ckjd59sQpmqKYyW4+FEhhz62Vn4zdt4oG7Bt5gvCPPw=; b=olEI98nBdSRufIek5Z8p4On1wl59dDV4/wf+tAGqbEk+xUwTaAnw5H7MzmN9vXughl jC2kP16NgcFtsahX7SX7uHnfntx5NWWlO3P05rcMaG/pWnmEVmhy+txikgBpFxCm4oP/ Nm52tOZp27q050W1deNiWVfxMuGO6/016biBH7DcEfK3/NcVJlF2pk7O9Cqzri+0vKvr dRlqRegtgZ7ezLxPvQQKMGe3PrZ5cPluDd8ogpt5lmqvaxdAc5s67MwpC/+GGQCxJg4v 7gAEETwal7lkgu4GtukP04TIOiz5w0ulLsvzvr03phtrV3Fi8VdMcFWyftFLBGPkSqnV ufWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iZSq1V1c; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id m2si5604811uae.148.2021.08.03.04.04.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Aug 2021 04:04:55 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iZSq1V1c; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:59154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAsEA-0001RE-M2 for patch@linaro.org; Tue, 03 Aug 2021 07:04:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAsC6-0005g0-5i for qemu-devel@nongnu.org; Tue, 03 Aug 2021 07:02:46 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:39743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAsC3-0003fy-9c for qemu-devel@nongnu.org; Tue, 03 Aug 2021 07:02:45 -0400 Received: by mail-wr1-x435.google.com with SMTP id b11so19528049wrx.6 for ; Tue, 03 Aug 2021 04:02:41 -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=Ckjd59sQpmqKYyW4+FEhhz62Vn4zdt4oG7Bt5gvCPPw=; b=iZSq1V1cfiL5yFH6unp6nwEsgTZbugFAPZy7dv0cYXtjYfQGORZaF/DawabrudqawO DE6vnBa4qf3XkVNlE/pGf6yOTMvHa2BwVFHSCpo9LuY4kTi81fUzxmIPXV2MZ5zeWWqT Cb5P1GoY4H+uvXYK7P3RrfC4EWAOZ4juhhfIm/KFSLW9aRRQ4Zqo971xGrOkIpHMEu0c 3yhnhDbwP68exGAWheV5F4TKGxVEtcDoSxCbT/qu10nUxakSgMnM3b3z58Q8lf2Lk6Ev aZsQcRQe3azLhQJLgD9fu7D7bvrUAWIo3gBbBkv6HFh3+kO707WPqTaB6akdNZ2BNpKl 2pgw== 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=Ckjd59sQpmqKYyW4+FEhhz62Vn4zdt4oG7Bt5gvCPPw=; b=bEizfxpNZ1VFQ35amSRaMT5zJJXzSNd9pA/wUZT5as8U/QH95wlXULAhDqEDIsVaI8 g3/7PiFcg2fqtFR9rpCcPkwsDEy+stKc0VG57q+qxDtDdZTPT1jXp4CVWMH1BpPAySgf 5jk6zBSItNxiZratUcFiPb9cqP9jlQGRfN3SUU0m5KN75X1RKnxX0kqBRzi1dKHpsxuR fSh43S6CdTMex7BJT51cNSH8ZvJLrBY0rKWHPWecrcxx+SIS8KXhkVORyCmHAdOA7hWx q3nTuxQMSopO/oD/d3M3JuLxCkJFr0qi4t9neQC0xudTzGKTOfdJNN4dKXM6Rgrdst5E oeUw== X-Gm-Message-State: AOAM530DQrWPMKZIm2JlUlywHkWgSf7AyaFK0JwqhBM6V8Um0SmZuXqV eZIXfwcYz/lUOFTBBHeyLLzp4w== X-Received: by 2002:adf:f4ca:: with SMTP id h10mr22069240wrp.3.1627988560518; Tue, 03 Aug 2021 04:02:40 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id v15sm2287209wmj.39.2021.08.03.04.02.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 04:02:38 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id F36CF1FF99; Tue, 3 Aug 2021 12:02:37 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [RFC PATCH 2/3] tests/tcg/sha1: remove endian include Date: Tue, 3 Aug 2021 12:02:36 +0100 Message-Id: <20210803110237.1051032-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210803110237.1051032-1-alex.bennee@linaro.org> References: <20210803110237.1051032-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, imp@bsdimp.com, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This doesn't exist in BSD world and doesn't seem to be needed by either. Signed-off-by: Alex Bennée Cc: Warner Losh --- tests/tcg/multiarch/sha1.c | 1 - 1 file changed, 1 deletion(-) -- 2.30.2 Signed-off-by: Alex Bennée Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/tcg/multiarch/sha1.c b/tests/tcg/multiarch/sha1.c index 87bfbcdf52..0081bd7657 100644 --- a/tests/tcg/multiarch/sha1.c +++ b/tests/tcg/multiarch/sha1.c @@ -43,7 +43,6 @@ void SHA1Init(SHA1_CTX* context); void SHA1Update(SHA1_CTX* context, const unsigned char* data, uint32_t len); void SHA1Final(unsigned char digest[20], SHA1_CTX* context); /* ================ end of sha1.h ================ */ -#include #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) From patchwork Tue Aug 3 11:02:37 2021 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: 490897 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp535503jap; Tue, 3 Aug 2021 04:03:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhVirB1BaIQTce3/+Ka+Wrpxj+1jv8kAFo3jqHcunFJBYyT3nx9+HRQk0iqDCZ3DjA6hhr X-Received: by 2002:aa7:d6cd:: with SMTP id x13mr24819755edr.300.1627988582771; Tue, 03 Aug 2021 04:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627988582; cv=none; d=google.com; s=arc-20160816; b=KWY02i6XlvF4Va3shePQnShUunWa+UZbywhgR3clZDIc4X8KnU4bhPJZuXImQn0+JY s/h+KLOwSMkjKxFKJYARxH+ahjOon6n2AckAdtYHVzcMncY0ykHlziGqYqoF3CwpYDvp 8GESR28IzsEnts89PZehTdR6WsF96U1s5ojO9fNm2Q1CfTC1JJxceU9/EHCBypJqUy2u HhfNp1rUvyJo1wTDtPjotGihLK30oqbENr7xjEDLg5FYVLWZFRhTg4iBOzJ586sdNM+h Tly7fSNxOhYUslG+HpU+M7NkX/pkeinBMwfrek9AeJXctBkkYMfp7L6lNM9j24NmARrN Wsbw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=FcmgASapL/jbxLLz2AgS1gw0FxDPEQ4usRRpydHEWTk=; b=xqbvOB0r0LpBKpCd6b+0C3yLInaABLTu7+MikFq0+7Uos+BZwi99UmahVQTZfs+YWh dfLI/kK8uPrqmI1K9WcZQ4EEdBXntXDSL2o2oTsX8RIhikWaWFNEheJEsOOk5VOZw/Kn SOu0vH6KUTvsYMcOVLxRi7QkUjCCQtKDFbjp15q1wBNDBuW8gmFLUW+i+rLPeRCVzbfw fw/z08FMmUg5iQZNlkWykKZKsbfVsskJnft3Sb+KT0S+JiXUpYVQOgfOXobuGqHTfoMg 8iGJCF2PndaGjIo/6nZwzLEQFIRmevp67Ua+neOkN2Ql5/c9krrGewQhB753+A1AT9Nd u9jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iiVWvc6+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id v4si12567147ejf.180.2021.08.03.04.03.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Aug 2021 04:03:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iiVWvc6+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:53262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAsCL-0005p8-PX for patch@linaro.org; Tue, 03 Aug 2021 07:03:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAsC8-0005kx-ES for qemu-devel@nongnu.org; Tue, 03 Aug 2021 07:02:48 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:36684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAsC6-0003k6-Sk for qemu-devel@nongnu.org; Tue, 03 Aug 2021 07:02:48 -0400 Received: by mail-wm1-x331.google.com with SMTP id o7-20020a05600c5107b0290257f956e02dso1457715wms.1 for ; Tue, 03 Aug 2021 04:02:46 -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=FcmgASapL/jbxLLz2AgS1gw0FxDPEQ4usRRpydHEWTk=; b=iiVWvc6+L5+EUOonWuRJgC8i6DMfgFN8I4VZO7EmLAeGqa/kHgjUitfg6SMezE20h+ o7Z8LzAkDyJESxLZIeekv76nplSVN0wlVswg1bx0Nfau9VdVEnxyCHrDd9wrPFww5qTC spZhWpp3yQeOcT6WSIxbCdcAt2piFcUZB9JEKn4qC7N+VNWLgCn3VniLDRurm9aZEGF/ 2YqiHrlvJTMkXvriRfjL3cYAnE6dCwQWkRxyAEjWjwGvK6YbIgBHh7uipMAmkQDfXgdQ E2cU/RWHvsPDeeMyO5A2Pwp3gfvWpqCLjJ5BnE5c96W5A3Wxe18OrDnno083J8h0OWP3 QOzg== 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=FcmgASapL/jbxLLz2AgS1gw0FxDPEQ4usRRpydHEWTk=; b=eyYQwiKWvjWWCyOfz1eVj7PxMHHtVTHkuEitlC2lCnOhhWJ+ztnMzRQ/cehlATIiMy ee5NkA+xC5Tucm8nT8+8WQnIFC71ZEGFGC4QJs5CIXL75CCxiHl7scyHTbTOcLrMmld5 N1Rmbyb/cP8ggFq3zjwIxowpM4V07EDzBPwXm9Wz4R5HjLha99M3HmQCxAZPNrVwQrl1 rLC+z0kU2Ad0Av+B++UzEAgnZRW8quvHd36vC0SRnlyxyNd21bsP6oTd09J9eDjyXbXO NqR/pW/VxJ5W2u+D6htqTWD8qf/DgxBdiipLr9mGVJ85Rzbuy0FXAacOzoU9hGyPWvh1 JZMQ== X-Gm-Message-State: AOAM532nvJY69CZk+SqmmOdwFWmloqXtbO3l9nTLPcBP248Q36u/GKZT YSlR0ZuT0p1SYL+ArsPRFRUPjw== X-Received: by 2002:a7b:c5d2:: with SMTP id n18mr3720093wmk.97.1627988565546; Tue, 03 Aug 2021 04:02:45 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id p4sm13633059wre.83.2021.08.03.04.02.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 04:02:38 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 17C401FF9A; Tue, 3 Aug 2021 12:02:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [RFC PATCH 3/3] tests/tcg: commit Makefile atrocities in the name of portability Date: Tue, 3 Aug 2021 12:02:37 +0100 Message-Id: <20210803110237.1051032-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210803110237.1051032-1-alex.bennee@linaro.org> References: <20210803110237.1051032-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Eduardo Habkost , Richard Henderson , f4bug@amsat.org, imp@bsdimp.com, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Not all of the multiarch tests are pure POSIX so elide over those tests on a non-Linux system. This allows for at least some of the tests to be nominally usable by *BSD user builds. Signed-off-by: Alex Bennée Cc: Warner Losh --- tests/tcg/multiarch/Makefile.target | 6 +++++- tests/tcg/x86_64/Makefile.target | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) -- 2.30.2 Acked-by: Warner Losh Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/tcg/multiarch/Makefile.target b/tests/tcg/multiarch/Makefile.target index 85a6fb7a2e..38ee0f1dec 100644 --- a/tests/tcg/multiarch/Makefile.target +++ b/tests/tcg/multiarch/Makefile.target @@ -10,7 +10,11 @@ MULTIARCH_SRC=$(SRC_PATH)/tests/tcg/multiarch # Set search path for all sources VPATH += $(MULTIARCH_SRC) MULTIARCH_SRCS =$(notdir $(wildcard $(MULTIARCH_SRC)/*.c)) -MULTIARCH_TESTS =$(filter-out float_helpers, $(MULTIARCH_SRCS:.c=)) +MULTIARCH_SKIP=float_helpers +ifeq ($(CONFIG_LINUX),) +MULTIARCH_SKIP+=linux-test +endif +MULTIARCH_TESTS =$(filter-out $(MULTIARCH_SKIP),$(MULTIARCH_SRCS:.c=)) # # The following are any additional rules needed to build things diff --git a/tests/tcg/x86_64/Makefile.target b/tests/tcg/x86_64/Makefile.target index 2151ea6302..d7a7385583 100644 --- a/tests/tcg/x86_64/Makefile.target +++ b/tests/tcg/x86_64/Makefile.target @@ -8,8 +8,12 @@ include $(SRC_PATH)/tests/tcg/i386/Makefile.target +ifneq ($(CONFIG_LINUX),) X86_64_TESTS += vsyscall TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64 +else +TESTS=$(MULTIARCH_TESTS) +endif QEMU_OPTS += -cpu max test-x86_64: LDFLAGS+=-lm -lc