From patchwork Mon Jul 2 14:30:12 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: 140781 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp30165ljj; Mon, 2 Jul 2018 07:36:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdwj7ELbw6W8ictaTar7wuUYb9Kkv7a7Iljdk4rA1iCGNXPX9Quw9Nfh2dk0iTgZIxaxQMj X-Received: by 2002:a0c:9c88:: with SMTP id i8-v6mr22997834qvf.193.1530542194106; Mon, 02 Jul 2018 07:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530542194; cv=none; d=google.com; s=arc-20160816; b=U8UwWBwWpT1vIfxQFNfapSiz3ExKb+1QYTAelAVEJEsjvFFcm8q65ERcvKsLCYzY9e GebaZFLSsFfIym7IbzkEQOOCu0TvjluKe7ef2l2bd4W6pmoQVQWAOZ3L2Wua7CcCDG4l Wokf3O0+2J+TtVCG5qV0IV/WkmVvWWfRXjussKFv2jaAPqRF4PEADne58U6a562aF3or rVdzGIt0mwCJAzuBrwD1ioIV8K+QDuGGXBpt6xEHaZgOugmE32LitDpkj6jFs//5culY z2dn2k+Ew8KIthFGDK2ZPI7G5IdWll0MdiOVB0cCQ097T91GDClNQgZjNR7faxrSQD/8 uCCw== 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=801BtlulI3v1N0a8n2IOnxXvo7ZXcWNkpX9cQ/Wz+H0=; b=uSxfFbmsWLrTRy84DBk91RP21OE5nLDg1bOy9ZXG/feuGY4Reb28q69F7Kp2LGm1pr GwFN3pmk8v9h6NJkqXRc+1bdElAH+IlMzhcWSkrFGUwtAKPVHswB9eGNNSNT06fq/1OF MA1qD0U7OPb3ubqieNZxD85TrTDiq5zhvHw4Q9umlyCFZm3xZw2MrkqeV2d/WyAArPk3 Pj3y2QhwQ/D4Edc7ENz3ROZkIOo/eXCm3TCLwktI11d7xtDcC586ksx7gLaOQnkDspBW dXsPlxmzwXpe3iuP8kk5WgFzBJgFf+n4jta1sCSXs83xbk3OQ+gzH9irWSamkWX1kz0h BSyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="Z8zy/T1K"; 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 d38-v6si1367988qtd.289.2018.07.02.07.36.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 02 Jul 2018 07:36:34 -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="Z8zy/T1K"; 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]:33164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZzwP-0000Wh-Im for patch@linaro.org; Mon, 02 Jul 2018 10:36:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZzqf-0005Tz-Cw for qemu-devel@nongnu.org; Mon, 02 Jul 2018 10:30:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZzqe-0000Xj-At for qemu-devel@nongnu.org; Mon, 02 Jul 2018 10:30:37 -0400 Received: from mail-wr0-x233.google.com ([2a00:1450:400c:c0c::233]:46248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZzqe-0000X7-4g for qemu-devel@nongnu.org; Mon, 02 Jul 2018 10:30:36 -0400 Received: by mail-wr0-x233.google.com with SMTP id s11-v6so6536360wra.13 for ; Mon, 02 Jul 2018 07:30:36 -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=801BtlulI3v1N0a8n2IOnxXvo7ZXcWNkpX9cQ/Wz+H0=; b=Z8zy/T1KEkFF793myTVzKXf5Sf1io6BvjRkcuKvwDy3aI8dS8Vpkx/dCPwN1ndTLuf V0t9xB8rOXY68e1347OQ2TTJefG7B7SVUkGQZtUOfUvUXzH1Infxq8NpzOqEPkll7z23 pHkQP/LMk0aAY6mgd1rzNUMcE0xa9IeM29UqI= 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=801BtlulI3v1N0a8n2IOnxXvo7ZXcWNkpX9cQ/Wz+H0=; b=tWg7cqjGqbSK11AyQ7D4JkfBvA/S7vdUbECTzb5e23NNjPZWdNtEzBIKN2pybiWHyb i7wSnM8r0LsxRy96bJCBys5OSJ8Gofam8kDyLgIotn1EdRuBLNmuZvS1EISMfqnC0kAk 1wJSwqVxlIjWzEm0aT9OH/bbuBrE32ZztduPA26fKyWBdxwmUhDmr5FF6+58CyjyNztb j6gDgP3TfjRnzWZYDRJvAIRV16hq5BX8ah/UiPUBj3gGYjS6A/7zHFKGsZ5DdqhPz/M6 uxneAepIlmyGgjsFke8u7e7kfctbiKqBMie5dseafSm3qYCfowrTM49CBSVFMM+hSzQ6 0xPg== X-Gm-Message-State: APt69E0/BA8KyDkYbOajSwyOiXagwvs1TvHlzvHtmoF145mHND0MyXSB IOdT707cWeXdLOZulHH2LWe20w== X-Received: by 2002:adf:c7c3:: with SMTP id y3-v6mr19718946wrg.230.1530541834961; Mon, 02 Jul 2018 07:30:34 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t1-v6sm7980052wmt.40.2018.07.02.07.30.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Jul 2018 07:30:28 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9CAE43E097F; Mon, 2 Jul 2018 15:30:22 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: 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: Mon, 2 Jul 2018 15:30:12 +0100 Message-Id: <20180702143021.18864-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180702143021.18864-1-alex.bennee@linaro.org> References: <20180702143021.18864-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::233 Subject: [Qemu-devel] [PATCH v3 11/20] docker: filter out linux-user builds for mingw 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: pbonzini@redhat.com, =?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 recent change from TARGET_DIRS to TARGET_LIST (208ecb3e1) had the effect of defaulting all docker builds to the current configured set of targets. This is actually reasonable behaviour but does run into problems if you have linux-user builds configured and you want to test the windows cross builds. This commit fixes that by adding a DOCKER_FILTER_TARGETS variable which is special-cased for mingw builds so we don't pass the whole set down. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 91d9665517..1813ec0781 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -20,6 +20,9 @@ DOCKER_SCRIPT=$(SRC_PATH)/tests/docker/docker.py TESTS ?= % IMAGES ?= % +# This is used to filter targets from some docker builds +DOCKER_FILTER_TARGETS ?= + CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$) DOCKER_SRC_COPY := $(BUILD_DIR)/docker-src.$(CUR_TIME) @@ -108,6 +111,12 @@ $(foreach i,$(DOCKER_IMAGES) $(DOCKER_DEPRECATED_IMAGES), \ ) \ ) +# Special cases +# mingw/windows builds cannot build linux-user +docker-%-win32-cross: DOCKER_FILTER_TARGETS = %-linux-user +docker-%-win64-cross: DOCKER_FILTER_TARGETS = %-linux-user +docker-test-mingw@%: DOCKER_FILTER_TARGETS = %-linux-user + docker: @echo 'Build QEMU and run tests inside Docker containers' @echo @@ -174,7 +183,7 @@ docker-run: docker-qemu-src $(if $V,,--rm) \ $(if $(DEBUG),-ti,) \ $(if $(NETWORK),$(if $(subst $(NETWORK),,1),--net=$(NETWORK)),--net=none) \ - -e TARGET_LIST=$(subst $(SPACE),$(COMMA),$(TARGET_LIST)) \ + -e TARGET_LIST=$(subst $(SPACE),$(COMMA),$(filter-out $(DOCKER_FILTER_TARGETS),$(TARGET_LIST))) \ -e EXTRA_CONFIGURE_OPTS="$(EXTRA_CONFIGURE_OPTS)" \ -e V=$V -e J=$J -e DEBUG=$(DEBUG) \ -e SHOW_ENV=$(SHOW_ENV) \ @@ -195,7 +204,8 @@ docker-run: docker-qemu-src docker-run-%: CMD = $(shell echo '$@' | sed -e 's/docker-run-\([^@]*\)@\(.*\)/\1/') docker-run-%: IMAGE = $(shell echo '$@' | sed -e 's/docker-run-\([^@]*\)@\(.*\)/\2/') docker-run-%: - @$(MAKE) docker-run TEST=$(CMD) IMAGE=qemu:$(IMAGE) + @$(MAKE) docker-run TEST=$(CMD) IMAGE=qemu:$(IMAGE) DOCKER_FILTER_TARGETS=$(DOCKER_FILTER_TARGETS) + docker-clean: $(call quiet-command, $(DOCKER_SCRIPT) clean)