From nobody Tue Oct 7 06:50:05 2025 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1551385687417804.4532275346631; Thu, 28 Feb 2019 12:28:07 -0800 (PST) Received: from localhost ([127.0.0.1]:45989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSHb-0001ic-Iy for importer@patchew.org; Thu, 28 Feb 2019 15:27:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFR-0000QH-Ux for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFR-00077u-49 for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:41 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:42250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFQ-000753-T6 for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:41 -0500 Received: by mail-wr1-x444.google.com with SMTP id r5so23418855wrg.9 for ; Thu, 28 Feb 2019 12:25:40 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id m189sm6380630wmf.7.2019.02.28.12.25.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:37 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6E9F61FF82; Thu, 28 Feb 2019 20:25:37 +0000 (UTC) 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=L/z9MUE3cOCWWFeNa1MNv0jMC1VzRLWSs++imNZ+SgY=; b=VSILV4X+ptYsYQRPok9hn3I5BYN5GCJTag/FZhROolS9/FbcaHrD0usvZlAjrX+Jr7 SESQ8sTDiy+C+3Pr6f2KDmPgis5TKABsFqt19PH0Itb5+4xRdrzCEr81zzIICEO+Yrw3 GXl95bQPlvYL5+mRKFo8+zsx5PmIfYEL37oVE4/HE0/wawuFF/2D7FtPJTJtYYd1Ez91 xX3uHUuP05i0QWvKDOPDEGhcDFAhzyGEQ1IFNLePPC5C1C+HmHc8xMQEI4nVEkb5LKey uXj6vz84YCGI/n2j0GOfHU2YKRaVKvoencYSF9vHsZY8bqYMWrttNyf0IfDLxeKg71Km 66mw== 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=L/z9MUE3cOCWWFeNa1MNv0jMC1VzRLWSs++imNZ+SgY=; b=G/tNRQIsSEmoU3JvN1iI1SuTqZ5mHkGCchfyxGtDoPLUr/onGUpWNBQB4rTsyIIQnO hQ1DaJU1MgTDcnoajC4/cz0+LqtcoSMbjCg/plZkbul8T9lyRPN+WaQbdtZuqWs6V4Vy 3HsAy1ZNwFm5A0wbSkwdEslZ3pPQkaJdBl4GEUtUJIaz/Ib//zKy0eQr94hbpr0eO5js rPRSqx+WzZgI+ubtMKT2aws2On/HWV01HMhG50icws5p0F/8t2besWuJifiTU5E7lZcH TXaI9PAtS2VF+ggqU2lW2UcuWu8U4BpCk1bQBMuOVVmCmKBSS9DxFIhfrn360KrKDOdC nskA== X-Gm-Message-State: APjAAAUQTGFLsStp7/rbLrir7N1MkeyZ2VqSSw8Yj9SDbSU7zxsrQzoQ h65upP7tdTZCqnhHu1TbFbc6so2aCwU= X-Google-Smtp-Source: APXvYqw2A6ey6lNdlQZghWdRIdCKikRSxC/GC4mGpG0rYF0Ex0bf0U2Rgk78Osy+rOv3mV2Mx6Z8bg== X-Received: by 2002:a5d:5504:: with SMTP id b4mr791414wrv.291.1551385539352; Thu, 28 Feb 2019 12:25:39 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 28 Feb 2019 20:25:22 +0000 Message-Id: <20190228202537.4638-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190228202537.4638-1-alex.bennee@linaro.org> References: <20190228202537.4638-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 Subject: [Qemu-devel] [PATCH v2 01/16] tests/tcg: add softmmu awareness to Makefile 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: edgar.iglesias@gmail.com, Richard Henderson , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , jcmvbkbc@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson --- tests/tcg/Makefile | 17 ++++++++++++++++- tests/tcg/Makefile.include | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile index bf06415390..55feab0f67 100644 --- a/tests/tcg/Makefile +++ b/tests/tcg/Makefile @@ -26,7 +26,7 @@ # # We also accept SPEED=3Dslow to enable slower running tests # -# We also expect to be in the tests build dir for the FOO-linux-user. +# We also expect to be in the tests build dir for the FOO-(linux-user|soft= mmu). # =20 -include ../../config-host.mak @@ -52,7 +52,11 @@ QEMU_CFLAGS=3D LDFLAGS=3D =20 # The QEMU for this TARGET +ifdef CONFIG_USER_ONLY QEMU=3D../qemu-$(TARGET_NAME) +else +QEMU=3D../qemu-system-$(TARGET_NAME) +endif =20 # If TCG debugging is enabled things are a lot slower ifeq ($(CONFIG_DEBUG_TCG),y) @@ -61,6 +65,7 @@ else TIMEOUT=3D15 endif =20 +ifdef CONFIG_USER_ONLY # The order we include is important. We include multiarch, base arch # and finally arch if it's not the same as base arch. -include $(SRC_PATH)/tests/tcg/multiarch/Makefile.target @@ -77,6 +82,16 @@ endif =20 %: %.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) +else +# For softmmu targets we include a different Makefile fragement as the +# build options for bare programs are usually pretty different. They +# are expected to provide their own build recipes. +-include $(SRC_PATH)/tests/tcg/$(TARGET_BASE_ARCH)/Makefile.softmmu-target +ifneq ($(TARGET_BASE_ARCH),$(TARGET_NAME)) +-include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.softmmu-target +endif + +endif =20 all: $(TESTS) =20 diff --git a/tests/tcg/Makefile.include b/tests/tcg/Makefile.include index c581bd6ffc..73b5626fc5 100644 --- a/tests/tcg/Makefile.include +++ b/tests/tcg/Makefile.include @@ -67,7 +67,7 @@ endif ifneq ($(GUEST_BUILD),) guest-tests: $(GUEST_BUILD) =20 -run-guest-tests: guest-tests qemu-$(TARGET_NAME) +run-guest-tests: guest-tests qemu-$(subst y,system-,$(CONFIG_SOFTMMU))$(TA= RGET_NAME) $(call quiet-command, \ (cd tests && $(MAKE) -f $(TCG_MAKE) SPEED=3D$(SPEED) run), \ "RUN", "tests for $(TARGET_NAME)") --=20 2.20.1