From patchwork Fri Oct 25 06:36:52 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: 177638 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3251027ill; Fri, 25 Oct 2019 00:00:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/frH/lkVF/nwUliwTrGByPs/LyqBxPJj3MOvITV8aLG05wUa69tmreR4cirhMVkvBkB/G X-Received: by 2002:a17:906:694d:: with SMTP id c13mr520592ejs.223.1571986832080; Fri, 25 Oct 2019 00:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571986832; cv=none; d=google.com; s=arc-20160816; b=YxV1AhjNpPEvJ08MB+ed9U9OFs4gXbLnqn9WGKhaq4lsnKzKpuWF3WCgZkhfB6WPmt CetcXVuxCrsn6kValvDW61A9ExmBOSKkOYD20WcSjXfQdoFzegTZLpffuyctQc0kGR7T zSoxKukZSKGpBAdctgbDGbXZcb+KZXlzIVXMFnqDi8krXgnIvjam3tW6Z8phvWKHx77L 9GcrgW+N46kpSwCCI51B5f31qx1QtIjjUL+3JR3h3HZDjSY7fOeEswPAgc26JxY7GnWz yXt3pQyOd1OylbQhcTrGmjnDzyv+0jkjIhI6LFAVukE/o+Or5BMIMqp3c6Dmx9ZSDuJD LNqQ== 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=s6dUXbiyhwUKB16Q3aSXxKi++FouEOb+/iuvzgagYLA=; b=bXHbbqkLlZISO8lyxVCAuoI0qFVJkcBsN0aIqirh9GmUL+RcMpJ3wN4CTCZfEmZ9LL /LZdSATumXcnRghK8byc+y9TUiXU5AIv2KH1kPrdAruOAjTph7tOS5pwM+/OBOoHzWlh OsPWSAEx5MckhH7vQsQ7EOKJC+gZdbvWO5dXkpYfOUwk61HYcz910U1hALx0m7jo8PT+ 1GeUVsIFOkaEliAa9mkypxxjiiHa2xWB6jLY3QoeXD5JMRSclV1yjWDmZKU98fafdnug QSMINCnseWWF0QDbvMkfWCgnlhl2EBN6CZwn6Lbz+k/wE+lWNufrBhs71as6CRL8Rdva O2FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=F6cnekdT; 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 b15si684133ejd.66.2019.10.25.00.00.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Oct 2019 00:00:32 -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=F6cnekdT; 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]:56302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNtaH-0003H1-Kh for patch@linaro.org; Fri, 25 Oct 2019 03:00:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36918) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNtMr-0007nX-F5 for qemu-devel@nongnu.org; Fri, 25 Oct 2019 02:46:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNtMq-00038K-DP for qemu-devel@nongnu.org; Fri, 25 Oct 2019 02:46:37 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:35163) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNtMq-00037l-7U for qemu-devel@nongnu.org; Fri, 25 Oct 2019 02:46:36 -0400 Received: by mail-wr1-x42d.google.com with SMTP id l10so956455wrb.2 for ; Thu, 24 Oct 2019 23:46: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=s6dUXbiyhwUKB16Q3aSXxKi++FouEOb+/iuvzgagYLA=; b=F6cnekdTs4Di1+8Zm6PTW2chDDEAQsC+Z3rNSo85HXtP+zsQnOxamognLd4LnJZyMI TbZY9yJRCcUYbqgrycErNioTOjnukwYwWITWnnQwBV0LMNrfVCI+1U4lAKKsPWxVojCd bRAwTVb9Cb0cuPhOjQa8oGn7NMRJrzvFYOtbnqIhp6BnJPl2qZgS8Gs5QdS/22CHNr/q dVp08Oh6j40if8YrscbeeQ1mCI1euIRJYo6vQcNGOl2nU8uy1jUHPc+suozrMCNolDYj mfM5FpDVqQ7eJzDbqKPYmVv39xgsdUTwoOaQw+78j1d7NfmcROd/pZv//TrtK0EuBYsW qP7Q== 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=s6dUXbiyhwUKB16Q3aSXxKi++FouEOb+/iuvzgagYLA=; b=eGPf6ZQpfielN10Ub/INUPYrkusx0dbptkuFFl3QhHN+0vbI/r/UdyKA1h0ex7UIKE DzW1rDW/D2xnlXSMV3zdRNiiO8qf3++1Bf8q2sDpWnvQteZBRqMrmVS9gwMSI9cSIYHk sDIuUmisj6hWi4bPNsXrHz6+kh08e5A/RQ5T3MSTRr6yvjIjGdb02FUq0AoYTvf+FcTV EioqEmn4AbuyX5cFFmDJ3nWd25JStTUTSWRd+s6fTn7e7mQMKLZ/zepiy+vZv3l3l7/Z giTcFFpxJYilvSgNCJ7sWYHOtFxQTaV8LS+UPF9GXtDWM6sMgtk+Hvxu7L+9NYih9WDs o6HA== X-Gm-Message-State: APjAAAV53CN8+/4n2RPjG2DUPb/yLYInTxXuJvmiwaDGXauiWlul9BHp KAvbvRIQz9W6uJFYRvwNtspkGYFaXxc= X-Received: by 2002:adf:f04e:: with SMTP id t14mr1368959wro.106.1571985995059; Thu, 24 Oct 2019 23:46:35 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id p17sm1824079wrn.4.2019.10.24.23.46.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 23:46:33 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 945611FFCB; Fri, 25 Oct 2019 07:37:18 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL v2 52/73] configure: add --enable-plugins Date: Fri, 25 Oct 2019 07:36:52 +0100 Message-Id: <20191025063713.23374-53-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191025063713.23374-1-alex.bennee@linaro.org> References: <20191025063713.23374-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::42d 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: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org 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. [AJB: split from larger patch] Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson -- 2.20.1 diff --git a/configure b/configure index d6fbcf45e4f..2995559ed21 100755 --- a/configure +++ b/configure @@ -498,6 +498,7 @@ libxml2="" debug_mutex="no" libpmem="" default_devices="yes" +plugins="no" supported_cpu="no" supported_os="no" @@ -1529,6 +1530,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" @@ -1710,6 +1715,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: @@ -6442,6 +6449,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 @@ -7272,6 +7280,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