qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Christoph Müllner" <christoph.muellner@vrull.eu>
Cc: 汪鹏程 <wangpengcheng.pp@bytedance.com>,
	qemu-devel@nongnu.org, "Alexandre Iooss" <erdnaxe@crans.org>,
	"Mahmoud Mandour" <ma.mandourr@gmail.com>,
	"Pierrick Bouvier" <pierrick.bouvier@linaro.org>
Subject: Re: [PATCH] contrib/plugins: Install plugins to moddir
Date: Thu, 20 Mar 2025 17:44:52 +0000	[thread overview]
Message-ID: <87r02rlhpn.fsf@draig.linaro.org> (raw)
In-Reply-To: <CAEg0e7gHD+=YipqOrv_TBuMuZ3zxwtmERHVt0g8ZfiuwUK6mUQ@mail.gmail.com> ("Christoph Müllner"'s message of "Mon, 3 Mar 2025 11:37:37 +0100")

Christoph Müllner <christoph.muellner@vrull.eu> writes:

> On Mon, Mar 3, 2025 at 11:24 AM 汪鹏程 <wangpengcheng.pp@bytedance.com> wrote:
>>
>> What about plugins under `tests/tcg/plugins/`?
>
> It feels a bit odd to install something from the tests directory.
> If certain plugins in tests/tcg/plugins are of general use (not just
> for testing) then it might be
> reasonable to move them to contrib/plugins.

They are useful in their own right - but the principle use case is to
test the plugin infrastructure.

>
>
>
>> From: "Christoph Müllner"<christoph.muellner@vrull.eu>
>> Date: Mon, Mar 3, 2025, 18:09
>> Subject: [External] [PATCH] contrib/plugins: Install plugins to moddir
>> To: <qemu-devel@nongnu.org>, "Alex Bennée"<alex.bennee@linaro.org>, "Alexandre Iooss"<erdnaxe@crans.org>, "Mahmoud Mandour"<ma.mandourr@gmail.com>, "Pierrick Bouvier"<pierrick.bouvier@linaro.org>
>> Cc: "Wang Pengcheng"<wangpengcheng.pp@bytedance.com>, "Christoph Müllner"<christoph.muellner@vrull.eu>
>> Currently the built plugins can only be found in the build directory.
>> This patch lists them as installable objects, which will be copied
>> into qemu_moddir with `make install`.
>>
>> Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
>> ---
>>  contrib/plugins/meson.build | 8 ++++++--
>>  1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/contrib/plugins/meson.build b/contrib/plugins/meson.build
>> index 82c97ca0f5..c25a1871b7 100644
>> --- a/contrib/plugins/meson.build
>> +++ b/contrib/plugins/meson.build
>> @@ -14,11 +14,15 @@ if get_option('plugins')
>>                          include_directories: '../../include/qemu',
>>                          link_depends: [win32_qemu_plugin_api_lib],
>>                          link_args: win32_qemu_plugin_api_link_flags,
>> -                        dependencies: glib)
>> +                        dependencies: glib,
>> +                        install: true,
>> +                        install_dir: qemu_moddir)
>>      else
>>        t += shared_module(i, files(i + '.c'),
>>                          include_directories: '../../include/qemu',
>> -                        dependencies: glib)
>> +                        dependencies: glib,
>> +                        install: true,
>> +                        install_dir: qemu_moddir)
>>      endif
>>    endforeach
>>  endif
>> --
>> 2.47.1

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


      reply	other threads:[~2025-03-20 17:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-03 10:09 [PATCH] contrib/plugins: Install plugins to moddir Christoph Müllner
2025-03-03 10:24 ` 汪鹏程
2025-03-03 10:37   ` Christoph Müllner
2025-03-20 17:44     ` Alex Bennée [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r02rlhpn.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=christoph.muellner@vrull.eu \
    --cc=erdnaxe@crans.org \
    --cc=ma.mandourr@gmail.com \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=wangpengcheng.pp@bytedance.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).