From nobody Tue Feb 10 05:41:20 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1664890400; cv=none; d=zohomail.com; s=zohoarc; b=GJ4Fy8W5bVAqqrHHU5tS1iG9tCR8ivDk1fZ9NAFtKTSasI6EJGY6TikZ0cBnt0Tke3qTGvsSImatuAoSS1z4tya0HSLUxYva6jf7zQPQ9C6bYBXrB2OQYMJ57uKFswh7yDNbLA95BgwnQ1Kjw7QcJq+3+AFw8Np3esrvoGz+syM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1664890400; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ht3EcFdMZjpHHWXTDaaW7bvMGh1A8/gT1GjW4z49bbU=; b=Rst9cOzVx7y7SxtpNfZakgIx9FHrxV8+8wkxxRjceGPNY0xO7oOH9It3xdYi4Sxf0P4aFw9xjYJRwlNIfgv86i7rRcvILiYASd2fI7JT/OyGjweWHZyG3pNWJrAz5sOT9/dtbXWtnZWB7NBLWRmHiAZJXt+jHCAwMOADZu7MM2s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 166489040073313.45288068915147; Tue, 4 Oct 2022 06:33:20 -0700 (PDT) Received: from localhost ([::1]:46492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofi2x-0008Kw-KW for importer@patchew.org; Tue, 04 Oct 2022 09:33:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgO-0007R6-Rc for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:00 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:34560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgM-00008e-4V for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:00 -0400 Received: by mail-wm1-x331.google.com with SMTP id n35-20020a05600c502300b003b4924c6868so703575wmr.1 for ; Tue, 04 Oct 2022 06:09:57 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id h9-20020a1c2109000000b003b4fac020c8sm18731564wmh.16.2022.10.04.06.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 695621FFC9; Tue, 4 Oct 2022 14:01:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ht3EcFdMZjpHHWXTDaaW7bvMGh1A8/gT1GjW4z49bbU=; b=a1qesWspbSKqALIKhsBkPdem1I0Isg8Lz6+nGpdgcHkSKqBQoPBEZlZvlvMW7BYJZu Ar61Cya+S1ED2/n96qBvn+9jfXo+pqm6FJtlxTyPMidMybs98eE0Ukt9akitCCX2ckvO W0PNp28pzOanJ3UquOAFsR96LLkrZk7jzOy8K4zQKuO1LKbAoeFyotNyxVPVK2JpHjO1 ZKEDCSJHsfPH+FzfdFFfeBJYRZB9cdZevlhq8wBWET4S6FIaP8SWKHRzO4BV7tNhCq0y gAHTtRHVPTi8cM0xvZEjgs3gWmH0c6QFEZOjJZpecmrYYkYBtD9/kWRaykacLfQaVXm0 CmzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=ht3EcFdMZjpHHWXTDaaW7bvMGh1A8/gT1GjW4z49bbU=; b=EIvOf4p65wqlqs+Xlqp4zz5lxwCsRma/DTbf1e4IMk56yUyYsColnkOtojMbBNB7/Z VN0vVbySM0sKWY3YoPc/5hiQTaqs5Ac8pL24nseSyLdpPsOAsgqm4HRDxcCYAaDzBlUE oU+rrTAHi9i5rvNHhk+9f3UbKlNtU/GB5CzZi6HUgrpgTFaRrGPbsScyhJSA5LB73DVI YshzD+yA0nJvGxpxCHNn49+MJI/Y0p9VamVXEnFNyEwp4IRvSfgIbhPiGIAyBcQYKTwF VRD7mE/PsRMvmpKvA3AeA//JluMuqi62rnY+yHFVwaBifzgVzyol4jZrEQ8JQjVG1T9o SysQ== X-Gm-Message-State: ACrzQf252KPkSgyGucmziny7sZ+TbMa6sl1yzWTgonNa8XyE2bOtzGkm NCBYjqE493CX7slyWV8ZCMB6PQ== X-Google-Smtp-Source: AMsMyM4WdB34va3BHwFAZANyrTkEZqQIb/bs/GbjkRTt1KJTRbzS/su7ieIX2WVeKC6SWxMyYuL+1g== X-Received: by 2002:a05:600c:1f15:b0:3b4:8600:fd7e with SMTP id bd21-20020a05600c1f1500b003b48600fd7emr10455472wmb.40.1664888995667; Tue, 04 Oct 2022 06:09:55 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 19/54] tests: simplify Makefile invocation for tests/tcg Date: Tue, 4 Oct 2022 14:01:03 +0100 Message-Id: <20221004130138.2299307-20-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1664890401732100001 From: Paolo Bonzini Remove the DOCKER_SCRIPT and TARGET variable from the Makefile invocation for tests/tcg. For DOCKER_SCRIPT, resolve the path to docker.py in configu= re; for TARGET, move it to config-$(TARGET).mak and use a symbolic link to break the cycle. The symbolic link is still needed because tests/tcg includes dummy config f= iles for targets that are not buildable. Once that is cleaned up, the symbolic = link will go away too. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Benn=C3=A9e Message-Id: <20220929114231.583801-20-alex.bennee@linaro.org> diff --git a/configure b/configure index ad70c81bfe..784b77ae90 100755 --- a/configure +++ b/configure @@ -1815,6 +1815,9 @@ if test $use_containers =3D "yes"; then podman) container=3Dpodman ;; no) container=3Dno ;; esac + if test "$container" !=3D "no"; then + docker_py=3D"$python $source_path/tests/docker/docker.py --engine = $container" + fi fi =20 # cross compilers defaults, can be overridden with --cross-cc-ARCH @@ -2184,16 +2187,16 @@ write_target_makefile() { write_container_target_makefile() { echo "EXTRA_CFLAGS=3D$target_cflags" if test -n "$container_cross_cc"; then - echo "CC=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_cc -i qemu/$cont= ainer_image -s $source_path --" - echo "CCAS=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_cc -i qemu/$co= ntainer_image -s $source_path --" + echo "CC=3D$docker_py cc --cc $container_cross_cc -i qemu/$container_i= mage -s $source_path --" + echo "CCAS=3D$docker_py cc --cc $container_cross_cc -i qemu/$container= _image -s $source_path --" fi - echo "AR=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_ar -i qemu/$contai= ner_image -s $source_path --" - echo "AS=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_as -i qemu/$contai= ner_image -s $source_path --" - echo "LD=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_ld -i qemu/$contai= ner_image -s $source_path --" - echo "NM=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_nm -i qemu/$contai= ner_image -s $source_path --" - echo "OBJCOPY=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_objcopy -i qe= mu/$container_image -s $source_path --" - echo "RANLIB=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_ranlib -i qemu= /$container_image -s $source_path --" - echo "STRIP=3D\$(DOCKER_SCRIPT) cc --cc $container_cross_strip -i qemu/$= container_image -s $source_path --" + echo "AR=3D$docker_py cc --cc $container_cross_ar -i qemu/$container_ima= ge -s $source_path --" + echo "AS=3D$docker_py cc --cc $container_cross_as -i qemu/$container_ima= ge -s $source_path --" + echo "LD=3D$docker_py cc --cc $container_cross_ld -i qemu/$container_ima= ge -s $source_path --" + echo "NM=3D$docker_py cc --cc $container_cross_nm -i qemu/$container_ima= ge -s $source_path --" + echo "OBJCOPY=3D$docker_py cc --cc $container_cross_objcopy -i qemu/$con= tainer_image -s $source_path --" + echo "RANLIB=3D$docker_py cc --cc $container_cross_ranlib -i qemu/$conta= iner_image -s $source_path --" + echo "STRIP=3D$docker_py cc --cc $container_cross_strip -i qemu/$contain= er_image -s $source_path --" } =20 =20 @@ -2630,6 +2633,8 @@ for target in $target_list; do fi if test $got_cross_cc =3D yes; then mkdir -p tests/tcg/$target + ln -sf ../config-$target.mak tests/tcg/$target/config-target.mak + echo "TARGET=3D$target" >> "$config_target_mak" echo "QEMU=3D$PWD/$qemu" >> "$config_target_mak" echo "run-tcg-tests-$target: $qemu\$(EXESUF)" >> $makefile tcg_tests_targets=3D"$tcg_tests_targets $target" diff --git a/tests/Makefile.include b/tests/Makefile.include index 3accb83b13..826b1895f4 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -50,23 +50,20 @@ $(foreach TARGET,$(TCG_TESTS_TARGETS), \ .PHONY: $(TCG_TESTS_TARGETS:%=3Dbuild-tcg-tests-%) $(TCG_TESTS_TARGETS:%=3Dbuild-tcg-tests-%): build-tcg-tests-%: $(BUILD_DIR= )/tests/tcg/config-%.mak $(call quiet-command, \ - $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLA= GS) \ - DOCKER_SCRIPT=3D"$(DOCKER_SCRIPT)" \ - TARGET=3D"$*" SRC_PATH=3D"$(SRC_PATH)", \ + $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLA= GS), \ "BUILD","$* guest-tests") =20 .PHONY: $(TCG_TESTS_TARGETS:%=3Drun-tcg-tests-%) $(TCG_TESTS_TARGETS:%=3Drun-tcg-tests-%): run-tcg-tests-%: build-tcg-tests= -% $(call quiet-command, \ $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAG= S) \ - TARGET=3D"$*" SRC_PATH=3D"$(SRC_PATH)" SPEED=3D$(S= PEED) run, \ + SPEED=3D$(SPEED) run, \ "RUN", "$* guest-tests") =20 .PHONY: $(TCG_TESTS_TARGETS:%=3Dclean-tcg-tests-%) $(TCG_TESTS_TARGETS:%=3Dclean-tcg-tests-%): clean-tcg-tests-%: $(call quiet-command, \ - $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAG= S) \ - TARGET=3D"$*" SRC_PATH=3D"$(SRC_PATH)" clean, \ + $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAG= S) clean, \ "CLEAN", "$* guest-tests") =20 .PHONY: build-tcg diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index c896d1033e..b9c3d247e9 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -31,7 +31,7 @@ =20 all: -include ../config-host.mak --include ../config-$(TARGET).mak +-include config-target.mak =20 # Get semihosting definitions for user-mode emulation ifeq ($(filter %-softmmu, $(TARGET)),) --=20 2.34.1