From patchwork Mon Oct 14 10:48:59 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: 176143 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4340341ill; Mon, 14 Oct 2019 03:51:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzx/K+eXmjq0C+OPDPabodNGQdlBI+m0xo94kWl/+uuRuT+kiQjPKBr13EbAKl1pqxWc2lK X-Received: by 2002:a17:906:4a8d:: with SMTP id x13mr27130445eju.317.1571050314930; Mon, 14 Oct 2019 03:51:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571050314; cv=none; d=google.com; s=arc-20160816; b=EGaYGGANxxxL3lD0BFBL7fqWKf8BGUZ1T/NRzXhVCAdjuVHTJZrggOjMBYL9pUBXAK WZm+7AjJbU8MUPGvWjjO4VfvG1Tv1Gj90gTfH5n/lgYryS/vh5yccu8UhXCvWuZqQBx+ /DuLaL4OVHysqoBpDZc9bkZwFkbZILnFSMFREmgwqwr2xS+8CV1uQMGNxEWMPi+mI90m kaFs20MvifphjPDPpNs8oFw+kGfzR3M4+a4qVEUsIJoVyJDHjEz+IaxbDHoU7fRGDJsn mWL3YsB3Kj18J8OfGtOpeXyW2Wu81fgiLAhZM0n0XgS58yZKzyOoJFwCPp+Z0MUPRdyH 6NVA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=UcgZ75XfpbxdYj2yixtrchwplPEwAU4Z4rGYEtqlY+4=; b=OfZkWy5i49Yun8LUPR64vp3kFAxXSxSkwNZFQulJu/r5oZIoTIOxGMQH8+Qc3QQf5r EPu1UJgJIISbHpuNDo5hWLFo6mG/hSu+g18RnphVAw6DBYZDvuHLv13TN+PvxgETUvQ2 0BJs1mfZJnGZ31e/S0DQlNs5xgJQCrmC1QeX7AApXRQOWiEkzGgRmymupQluScs/a1wK 9AcsT/xshcx1pobt6helzdmPax4CK1ORYC5T9W4L3xSgQxAwpS/PeI71oIijceE1IxAF rOOse6EC/ij/c049SFOoneHuM1zCbtcUQbH37dNwLkXz0ALdJEiLtQ/WY7zEy/lekYP/ C7Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=i+Nd8Ids; 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 i5si11936287edj.107.2019.10.14.03.51.54 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Oct 2019 03:51:54 -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=i+Nd8Ids; 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]:46840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJxxB-0007NQ-HV for patch@linaro.org; Mon, 14 Oct 2019 06:51:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44452) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJxvI-0007JK-1V for qemu-devel@nongnu.org; Mon, 14 Oct 2019 06:49:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJxvG-0005xY-EU for qemu-devel@nongnu.org; Mon, 14 Oct 2019 06:49:55 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:39513) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJxvG-0005w6-37 for qemu-devel@nongnu.org; Mon, 14 Oct 2019 06:49:54 -0400 Received: by mail-wr1-x432.google.com with SMTP id r3so19147619wrj.6 for ; Mon, 14 Oct 2019 03:49:54 -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=UcgZ75XfpbxdYj2yixtrchwplPEwAU4Z4rGYEtqlY+4=; b=i+Nd8IdscLjxymcwkshtSmFKmSaCGVo3fxpTzgcHRj3XAEygeEY5Be+yOEZt/ojjCj +QuKy1oqjw2Ye9FyDjLRo0fRujypeGiS0DFhurE+trzpeLz5tg6jSKoGXFajeNWKJaau IpOkkufVesz29fPVIaAk4yTJSHSvR+doBfT2XpazeyQ8hbHqVpNJzklDfcGPbbHAIrMW 7MsBfS7B1OX2m3U+ZIAqlbRE3rAd8ALY+iieaD52pb51InP6LCrmz7b+0FTu3Y3hDdAD NfisLZaXY8WWqreZave2D/+rdfBQOxM2TxxtBz73xfyyCbmPNaZDVpmfWAW4Fe04zbjU 8Ilw== 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=UcgZ75XfpbxdYj2yixtrchwplPEwAU4Z4rGYEtqlY+4=; b=uNuLx9gNngWVxK6AknQ67sxJvARcO1Q74eO2TTRzRP7HGrH7DSa1evAJVFaYHbOj8G 8a+sZxfq1/R4g3UVGiCnExtO5TdZQy9UnEwtzTQ4ecmpOZkYXmCd8ygYD0dXFg+U09sa PIsz1ggfXBqA7AZQ64Z5qSrME6kTJAlD4imU0eWKwO3fZwAuUTTbxzIm+px+PEQyflY0 njSLyWXFRBWcE3lnUFN6RFSpyDbAJ+TXCKSOdAXRgrbE26qO9CQqCcqY+/yXBeCByKvo Xn+b1wqmz959b2LUzagbtoVZz9yyKs/HJ2TaeY/ad65/1wTRFFiFNboIWQ/yLIuFjKHZ M1og== X-Gm-Message-State: APjAAAX2r7y6PqQ9rURdDslYDO1maddV1dOQkHke548zd2pua1LT5by+ VtT957apsZd9eiLWqUTIa6cvbg== X-Received: by 2002:adf:ed43:: with SMTP id u3mr25121113wro.236.1571050193003; Mon, 14 Oct 2019 03:49:53 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id a18sm24852464wrs.27.2019.10.14.03.49.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 03:49:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4B5F41FF93; Mon, 14 Oct 2019 11:49:50 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v5 06/55] configure: add --enable-plugins (MOVE TO END) Date: Mon, 14 Oct 2019 11:48:59 +0100 Message-Id: <20191014104948.4291-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191014104948.4291-1-alex.bennee@linaro.org> References: <20191014104948.4291-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::432 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: robert.foley@futurewei.com, Richard Henderson , peter.puhov@futurewei.com, aaron@os.amperecomputing.com, cota@braap.org, =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= 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 Reviewed-by: Richard Henderson --- configure | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.20.1 diff --git a/configure b/configure index 08ca4bcb46..485a9837c9 100755 --- a/configure +++ b/configure @@ -497,6 +497,7 @@ libxml2="" debug_mutex="no" libpmem="" default_devices="yes" +plugins="no" supported_cpu="no" supported_os="no" @@ -1524,6 +1525,10 @@ for opt do ;; --disable-xkbcommon) xkbcommon=no ;; + --enable-plugins) plugins="yes" + ;; + --disable-plugins) plugins="no" + ;; *) echo "ERROR: unknown option $opt" echo "Try '$0 --help' for more information" @@ -1705,6 +1710,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: @@ -6429,6 +6436,7 @@ echo "capstone $capstone" echo "libpmem support $libpmem" echo "libudev $libudev" echo "default devices $default_devices" +echo "plugin support $plugins" if test "$supported_cpu" = "no"; then echo @@ -7256,6 +7264,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