From patchwork Thu Feb 7 18:37:43 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: 157781 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1049541jaa; Thu, 7 Feb 2019 11:16:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IbYrR3H/Eg/HlqGZAbqc5MRCYhdi8tHNN+ZZpCyCSiEDmK45/VnD0Av2I2l4g2OXutpGnCx X-Received: by 2002:a25:4443:: with SMTP id r64mr14059118yba.86.1549566978832; Thu, 07 Feb 2019 11:16:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549566978; cv=none; d=google.com; s=arc-20160816; b=KTWpI8QyjVyCMOtPbxiOjqy61b+veq1eEH1eFH19pIn6iayrg1AqGrlKFtmDM0wPfp tTVLz/BmQGIe9du5VuMtcnehFvTRp+YPFEWNMgvJmpuHpt6hRC133Gnm1RM50QbsT8xq SvXCLGx3ZBau8DKw57WtwwjNtmTUy0rRz1bUEsH5WKNn8lqNvxiCixIPrXixPDujKKT9 aTtAOcNwkpff1p7a9Ds5cIn3a6aYkFnNKpyeJI2NSu23i1F7SqLN7hkTC4M5U4fo7A8A KvTURO6aIWXEskE1zSQzh3zRi2amAh01EaQV4oLImZY86Bpa1BkRc5UCNWSO2RAJ8tnf IR6g== 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=6ctHGPCRB5rgyBhy5Weqh5JeJifx4dwStbosLa+ze0E=; b=HRMSAp8NmynVizcyQ5NTFJbU5urz+WBEbP23Y9+M6fSB7s+qFURWZnoaE8Tz/xQmGG iBsu5YRKsf8NRNfWu0mWZakAdRhUOKITw5Va/4P57AMOvMge7rrLSLVXMVkieVWXLnbI FS0PZlOTWYAk5MqqPDy1YDMXDTt3syEs8LEmC70hKBYOcprTy6oX4UmolFXgFU1kT9ij 7kJmp8r4SHsXw6H5uUW1HWJklPlIQDrloCXr5P8SyjL7WrYWqQ1y2NvP3ZhXRITxbnBe fmtgioUFsX1O/GVmKfnY4JZ6p/l6p/cKJoRB5ANuY+H3i9jKDzXvaTXnzwR/znRpbCdL bEGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="H5jhkf/j"; 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 h7si6205731ybi.340.2019.02.07.11.16.18 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Feb 2019 11:16:18 -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="H5jhkf/j"; 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]:45747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grp9m-0006Ef-9o for patch@linaro.org; Thu, 07 Feb 2019 14:16:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grofc-0006Hh-Gx for qemu-devel@nongnu.org; Thu, 07 Feb 2019 13:45:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grofb-0005KO-Lr for qemu-devel@nongnu.org; Thu, 07 Feb 2019 13:45:08 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:40969) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grofb-0005JJ-D0 for qemu-devel@nongnu.org; Thu, 07 Feb 2019 13:45:07 -0500 Received: by mail-wr1-x444.google.com with SMTP id x10so955058wrs.8 for ; Thu, 07 Feb 2019 10:45:07 -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=6ctHGPCRB5rgyBhy5Weqh5JeJifx4dwStbosLa+ze0E=; b=H5jhkf/jQ4U6wJVwdHPulReTd9oflD5eV19stWDEeZfaPjL7SDJocXOkMkEprvUObu UAoPUqjdIJiqo2kDZcc5+DOI60NdtcqIC+C94wPoURSXkgeegVKlJ4HsJfE1Me8Wldv8 eagDmXHTe13bmc9En00pzZfTf5xY23ig+i3j2lCFfwK4oq7jGnxzv/RzaJghLo+frfu5 nNPuZuRUwr7SewFZvzsd0xKyxjrntk+UpVm+o4vK5s3OK/pAOHsSd+LNleRi59M3wHvR Co0NekIPt6Ioy6UtE6g+tmJzhfLVJKXGJwrNBnxTiomEEZoBAU/URo7vruwIoSdJQjqK FjKA== 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=6ctHGPCRB5rgyBhy5Weqh5JeJifx4dwStbosLa+ze0E=; b=q6ohdcTnpzNh162vp4HOFPsiTDHjnkPZ78uDV+3XzQ1XDRIjoYOGD2QpDCJU7wBxdV i/b0hdR44IwROn/F5qtT6kNr1ijb68riKUbv/LYcUpzuwUyXZWFdZw+br/HuK112ByRX RPcH3C7r46etGOb27rUfH3RSVifSv3XROMjRc/6ZmE7YcZ3t0Kzbicvu/Hob126rVJkq /FB+xsWdyR10yEJYPIpuVQn43JbJ7Do/JvjHeLHfVEAMVdeQ/TtFS8Gne8UYdjfD91s3 O8DhFD9P4+6t5tJF2Eso6l2t5WvFbKAyOjW0Vw0hM5ij1s0P3Lib8eOvl4eJbEJlIVX/ cnMQ== X-Gm-Message-State: AHQUAuboAV/5TDr9/KBTg8vlP9bE7U97JPEiH7I47wIw+hW7u3DlhWoz 7cgCrDlCZbBx5E8aqPm5XwLLjQ== X-Received: by 2002:adf:ecc4:: with SMTP id s4mr3337351wro.286.1549565105980; Thu, 07 Feb 2019 10:45:05 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u3sm102257wrq.21.2019.02.07.10.45.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 10:45:05 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 534601FF8F; Thu, 7 Feb 2019 18:37:45 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 7 Feb 2019 18:37:43 +0000 Message-Id: <20190207183744.5054-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190207183744.5054-1-alex.bennee@linaro.org> References: <20190207183744.5054-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::444 Subject: [Qemu-devel] [PATCH v2 15/16] 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: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, =?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 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/vm/Makefile.include | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.20.1 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 $*")