From patchwork Fri Jan 25 14:00:16 2019 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: 156590 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp410162jaa; Fri, 25 Jan 2019 06:15:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN7XjPc9sSx3FQBcRibE088aqTY38oxrhqn0iL8amT9Bsvzkbkx+0SynyLiUMqCs0tQghY39 X-Received: by 2002:adf:9f10:: with SMTP id l16mr12184700wrf.206.1548425744488; Fri, 25 Jan 2019 06:15:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548425744; cv=none; d=google.com; s=arc-20160816; b=PjsEIGdHf1YVjywWaB0gUJW00yARKQw/XuEjkKzgvU0vv0mzYbFTGFAAAhmOp0DfY/ 2DgEm5YQK5Dwnq4Wks0PyoWWKR99Eg4IBg94IbwMX9PKtOo17xW+Wrz8GLf6Sl6xAETh rJW6noxHR7dHf79wlI6Z0ART95k5HoKvzWvCI1/rlzp1CLl2yUgbfQxBYAvKJk2KpNlX 41TXClm/kD8CqIpGYkJJMQ/e6Vk1dkBPAESlwdJhusvkCHIF//hCaafjtzzXHRIPHmxR WMVi92TFlodrpJzfaqiNfua2g40GjKtmMDv5W7sf019gPzJMxwlwINcyZbAPxt6CPy1e Cy0g== 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; bh=FuglTIL27lqQLr8TDoLCoIqWK/Kf2YOV/VYJP+0VDl4=; b=vgyFl34OrC4w1d8sEWmBt8aG0+PZn/X7eNlFBvCYxRAck3I85CtUwIeCMpse5foiie SdVwvtq9z2oqMHO5FfY8mCEjBYFGIGC0Us4CJA5OVfNBzWnq3kn4Ig0V8IzkW9pvtOtv 0BnHUZg0hY9C0zWnSurZ1BLE22xT/GItWP5o/i0ICXhLe5jiplHfuPY84Ybu+wboo6r0 lnocqyqIwFF9TBInOY70BlfJi8EKf4EmPhKHgmGBVnqy75zdgUk0GoHLoDVSc8mkb4j2 eP9Wh1ft/9qUWVffi6G1dt6d0hRwal/4aP3iv7LaxoeNoc/u4PK9l3czgylZTTsuCYUC uVbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="SmXis4k/"; 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 o17si43600843wrs.150.2019.01.25.06.15.44 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Jan 2019 06:15:44 -0800 (PST) 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="SmXis4k/"; 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 ([127.0.0.1]:45410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn2Gl-0007UU-Fk for patch@linaro.org; Fri, 25 Jan 2019 09:15:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn290-0000oL-TT for qemu-devel@nongnu.org; Fri, 25 Jan 2019 09:07:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gn290-0004aj-1u for qemu-devel@nongnu.org; Fri, 25 Jan 2019 09:07:42 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:39451) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gn28z-0004QN-QS for qemu-devel@nongnu.org; Fri, 25 Jan 2019 09:07:41 -0500 Received: by mail-wm1-x341.google.com with SMTP id y8so6729537wmi.4 for ; Fri, 25 Jan 2019 06:07:30 -0800 (PST) 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=FuglTIL27lqQLr8TDoLCoIqWK/Kf2YOV/VYJP+0VDl4=; b=SmXis4k/2ynUNEGv8/KgdrvHz3PR6eq5Srzk1wISRH+Q8S/aiJnl/OXT+gCQqV4yjh srbaQsoxfc3zx/urKOz+8rYFHDvN2IaECzo6XAnfbaq5QSwYkwueUIvPFPwT4PWtc4I1 NWTb001DxgwNF8SZeOgJTsUB79I39SBF2uFLw= 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=FuglTIL27lqQLr8TDoLCoIqWK/Kf2YOV/VYJP+0VDl4=; b=EvIny75LblgXNjytUdRhZTD2RZ7MXDt+DyHA7fztU/bTpBBgjI8wR6JsZmsMMR74w0 F+OXD5srfbO1IdSa4MHyMC3iyf/xichS47U7Sk/QFlcdmHc4qEzr7JaTdIVgV4wW3hPc 53DuKAnGW0bpo7aHnaqimp5ynquSaAZgG208L5W8B8J1RsCDK5CLNEEvC66PSaa/3Q3N UpwybTZDk/lVYRdtt2kCN998Bm8FjzC5BaTbh6TP6rNrOrnrwVqTFrIV3yHR/b+LCf21 3LW/mzhPn+gMWHMxu+8A6L+zKNKJgjeMUvmsOYq9bhZ7xu0bEUV1m46CmXJGch3gkNc3 Y6Mw== X-Gm-Message-State: AJcUuke/kwkivEVGck5/9lU1fezkd/ilcfmX12w4bajuxo3SJktidl+U n4WEsbQO2sBqr/VPvLF6hnQblA== X-Received: by 2002:a1c:7ec4:: with SMTP id z187mr6867935wmc.43.1548425249757; Fri, 25 Jan 2019 06:07:29 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n6sm61121842wmk.9.2019.01.25.06.07.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jan 2019 06:07:29 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id ADC9D3E0A8A; Fri, 25 Jan 2019 14:00:18 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 25 Jan 2019 14:00:16 +0000 Message-Id: <20190125140017.6092-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190125140017.6092-1-alex.bennee@linaro.org> References: <20190125140017.6092-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:4864:20::341 Subject: [Qemu-devel] [PATCH v1 13/14] tests/vm: expose BUILD_TARGET, TARGET_LIST and EXTRA_CONFIGURE_OPTS 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: Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Now the underlying basevm support passes these along we can expose some additional variables to our Makefile to allow more customised tweaking of the build. For example: make vm-build-freebsd TARGET_LIST=aarch64-softmmu \ EXTRA_CONFIGURE_OPTS="--disable-tools --disable-docs" \ BUILD_TARGET=check-softfloat Signed-off-by: Alex Bennée --- tests/vm/Makefile.include | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include index a58383d263..992d823f6b 100644 --- a/tests/vm/Makefile.include +++ b/tests/vm/Makefile.include @@ -19,6 +19,11 @@ vm-test: @echo "" @echo " vm-build-all - Build QEMU in all VMs" @echo " vm-clean-all - Clean up VM images" + @echo + @echo "Special variables:" + @echo " BUILD_TARGET=foo - override the build target" + @echo " TARGET_LIST=a,b,c - Override target list in builds." + @echo ' EXTRA_CONFIGURE_OPTS="..."' vm-build-all: $(addprefix vm-build-, $(IMAGES)) @@ -47,6 +52,9 @@ vm-build-%: $(IMAGES_DIR)/%.img $(if $(J),--jobs $(J)) \ $(if $(V),--verbose) \ --image "$<" \ - --build-qemu $(SRC_PATH), \ + $(if $(BUILD_TARGET),--build-target $(BUILD_TARGET)) \ + --build-qemu $(SRC_PATH) -- \ + $(if $(TARGET_LIST),--target-list=$(TARGET_LIST)) \ + $(if $(EXTRA_CONFIGURE_OPTS),$(EXTRA_CONFIGURE_OPTS)), \ " VM-BUILD $*")