* [PATCH] contrib/plugins: Install plugins to moddir
@ 2025-03-03 10:09 Christoph Müllner
2025-03-03 10:24 ` 汪鹏程
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Müllner @ 2025-03-03 10:09 UTC (permalink / raw)
To: qemu-devel, Alex Bennée, Alexandre Iooss, Mahmoud Mandour,
Pierrick Bouvier
Cc: Wang Pengcheng, Christoph Müllner
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] contrib/plugins: Install plugins to moddir
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
0 siblings, 1 reply; 4+ messages in thread
From: 汪鹏程 @ 2025-03-03 10:24 UTC (permalink / raw)
To: Christoph Müllner
Cc: qemu-devel, Alex Bennée, Alexandre Iooss, Mahmoud Mandour,
Pierrick Bouvier
[-- Attachment #1: Type: text/plain, Size: 1839 bytes --]
What about plugins under `tests/tcg/plugins/`?
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
[-- Attachment #2: Type: text/html, Size: 5224 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] contrib/plugins: Install plugins to moddir
2025-03-03 10:24 ` 汪鹏程
@ 2025-03-03 10:37 ` Christoph Müllner
2025-03-20 17:44 ` Alex Bennée
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Müllner @ 2025-03-03 10:37 UTC (permalink / raw)
To: 汪鹏程
Cc: qemu-devel, Alex Bennée, Alexandre Iooss, Mahmoud Mandour,
Pierrick Bouvier
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.
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] contrib/plugins: Install plugins to moddir
2025-03-03 10:37 ` Christoph Müllner
@ 2025-03-20 17:44 ` Alex Bennée
0 siblings, 0 replies; 4+ messages in thread
From: Alex Bennée @ 2025-03-20 17:44 UTC (permalink / raw)
To: Christoph Müllner
Cc: 汪鹏程, qemu-devel, Alexandre Iooss,
Mahmoud Mandour, Pierrick Bouvier
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-20 17:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).