From patchwork Wed Jul 31 16:06:37 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: 170144 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4215037ile; Wed, 31 Jul 2019 09:10:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6uPP/AkvM2i0NTl036YM+0Mz0HnMTFYmw4YO1XgdLdV2s94rwJ/CO+3a0oAjXgdH7yEr7 X-Received: by 2002:ac8:45d2:: with SMTP id e18mr193776qto.258.1564589407175; Wed, 31 Jul 2019 09:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564589407; cv=none; d=google.com; s=arc-20160816; b=e1XGVmxoCEeetXyoLu1IQepNIGFwviTMTcrFV8wB7ANNTLP4RJ+O4DraoVe1b3+PvD FibzyHFiXT8gMin3ThxX23Iq7WcoglTLIjVwOgzM7Y8pG5aGwRW05m2Ei8NLkVBCVSLC BM+pFISeGcj7vm3lPd6DISAeVRJD+feTR6gSAXQJ58znycEgVBuFh/XssJ0QNvFuyIuI VjL0I7OqFdlVVGGI3NOEV3fPuEWXk050IfVzDi24NlU2URLOexx0h6Cbth7VZObipJ5u S9FlTMie0MX8kBLNoAo/UXTBT7uhY6hzQ5i92duJK0CQp8S2zIkzKj+o0uh4tKxZEIXP q2aA== 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=7+yS4VWJqkSD6ydwUwgfwcLX4YEx0h4kZ8SydG4heHg=; b=W6oIfAItszFsIg8kP0lwBb44AUwHSYpLjoytfVvsrTw7pCdDgRF4AUhAPfmtnBMsgk cLLu05Vc5XZdmAH18HZRHWDIDfB+POJedSjmxRWmPoTKiE9EKVojNNIXlmrsuv9gthVb tnN0gbTPeE+jYNeVtFl5XgVd8GA1rMeohtMAqcZsI5TAn/Yn44fuuTftr2udzZRI/4UF 7XTr0q64IgGFFGFBppy+ZqeqJj7j5Be6ALPz+eBIN1cbwzbXEAEsPVwikV3VYu0DlrG/ JM1hiKUQiHpbH5IP/XUSdNBrkt7X4SR2iKETiI9g/n21piVUK1WlY2wpkTyFK78eQ+Fx uIIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FYnOYtoP; 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 l57si13279969qtl.94.2019.07.31.09.10.07 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 09:10:07 -0700 (PDT) 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=FYnOYtoP; 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 ([::1]:42340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsrB0-00041Y-P3 for patch@linaro.org; Wed, 31 Jul 2019 12:10:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40460) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsr8o-0002BZ-BL for qemu-devel@nongnu.org; Wed, 31 Jul 2019 12:07:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsr8k-0000oS-Pj for qemu-devel@nongnu.org; Wed, 31 Jul 2019 12:07:48 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:33422) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsr8h-0000fL-FA for qemu-devel@nongnu.org; Wed, 31 Jul 2019 12:07:44 -0400 Received: by mail-wm1-x342.google.com with SMTP id h19so1627101wme.0 for ; Wed, 31 Jul 2019 09:07:29 -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=7+yS4VWJqkSD6ydwUwgfwcLX4YEx0h4kZ8SydG4heHg=; b=FYnOYtoPUiiUca7fOl27hYNxq8Wo46wK804tILavsG/nyRwG9yH14HkIRo7o0nAjP8 OFpIzOGZbDxLYoU9Em88BasJBHKQ+U17ImSewknxFCoSVpCf2470jnlC+gji93/NEHvb +oUZpHb5oLh+/VL16dcfs7ClOMz6VGaPc/ji9mDnShYwWrQniLKB9fxXKHJA80FMebxJ yEpImr9PGJezIgrp1q7HYIstxFddlqouHVWMEZOLkER3vbYLraIWzdQG4+K5RsV4CI0a 08zEdLpjR4KHElNQvaHdLeBRAflVffgomF3onPleDBIPWHrSi27R4nuE6OcgUo1aS4oE +1Vw== 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=7+yS4VWJqkSD6ydwUwgfwcLX4YEx0h4kZ8SydG4heHg=; b=QpLStrB7osWIaa5oQzl7nXQul3EzvkzMV9nEZ5Qvj+OOk6+DtZ1LVR8//lyeyY7ogy qd1P08bFhbRphaQ+YaffuOq5xBq2pSS3WT6YZtDUbGp3ekXWchxN+6Ka3BWGdnxiH75J OAOjjjFwFCNHNZqV1F7SpeIDbnnGWC+rW3Nw/Btdww68liGWYaxGUJiHNHSpEPMoEC7/ vrGuVqwO7ADossJMVqql/iOGv9RfLQJhCgqdu+yegn/HC/ucTmlvniOxdqHdEEfpyGyY OA3LSmuZFu/WZS0Kck2gSVEJeRRLSrr7bwZLK4C/qLkyquzkbB+vN1jMyrLsGKFunMMR yc3g== X-Gm-Message-State: APjAAAV5LUdEZb4PwbbVEbvlttTFq66Ol+CnYycRX/ghmbVO771mRHQq IJRBp7YTB9L3RpJx7eVGOYojX41+bT4= X-Received: by 2002:a1c:a019:: with SMTP id j25mr111967752wme.95.1564589248400; Wed, 31 Jul 2019 09:07:28 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a81sm72210857wmh.3.2019.07.31.09.07.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 09:07:23 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 8490F1FF9B; Wed, 31 Jul 2019 17:07:20 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Wed, 31 Jul 2019 17:06:37 +0100 Message-Id: <20190731160719.11396-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190731160719.11396-1-alex.bennee@linaro.org> References: <20190731160719.11396-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::342 Subject: [Qemu-devel] [PATCH v4 12/54] configure: add --enable-plugins (MOVE TO END) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bobby.prani@gmail.com, cota@braap.org, =?utf-8?q?Alex_Benn=C3=A9e?= , aaron@os.amperecomputing.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This adds the basic boilerplate feature enable option for the build. We shall expand it later. XXX: currently this patch is included at the start of development to aid with incremental building. It should be moved to the end once the plugins are feature complete. [AJB: split from larger patch] Signed-off-by: Alex Bennée --- configure | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.20.1 Reviewed-by: Richard Henderson diff --git a/configure b/configure index 714e7fb6a1f..dbc78f21b0c 100755 --- a/configure +++ b/configure @@ -499,6 +499,7 @@ docker="no" debug_mutex="no" libpmem="" default_devices="yes" +plugins="no" # cross compilers defaults, can be overridden with --cross-cc-ARCH cross_cc_aarch64="aarch64-linux-gnu-gcc" @@ -1543,6 +1544,10 @@ for opt do ;; --disable-libpmem) libpmem=no ;; + --enable-plugins) plugins="yes" + ;; + --disable-plugins) plugins="no" + ;; *) echo "ERROR: unknown option $opt" echo "Try '$0 --help' for more information" @@ -1740,6 +1745,8 @@ Advanced options (experts only): --enable-profiler profiler support --enable-debug-stack-usage track the maximum stack usage of stacks created by qemu_alloc_stack + --enable-plugins + enable plugins via shared library loading Optional features, enabled with --enable-FEATURE and disabled with --disable-FEATURE, default is enabled if available: @@ -6481,6 +6488,7 @@ echo "docker $docker" echo "libpmem support $libpmem" echo "libudev $libudev" echo "default devices $default_devices" +echo "plugin support $plugins" if test "$supported_cpu" = "no"; then echo @@ -7307,6 +7315,11 @@ if test "$sheepdog" = "yes" ; then echo "CONFIG_SHEEPDOG=y" >> $config_host_mak fi +if test "$plugins" = "yes" ; then + echo "CONFIG_PLUGIN=y" >> $config_host_mak + LIBS="-ldl $LIBS" +fi + if test "$tcg_interpreter" = "yes"; then QEMU_INCLUDES="-iquote \$(SRC_PATH)/tcg/tci $QEMU_INCLUDES" elif test "$ARCH" = "sparc64" ; then