[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] meson: introduce modules_arch
From: |
Jose R. Ziviani |
Subject: |
Re: [PATCH 1/2] meson: introduce modules_arch |
Date: |
Tue, 21 Sep 2021 10:46:52 -0300 |
Hello!!
On Mon, Sep 20, 2021 at 09:03:28PM +0200, Paolo Bonzini wrote:
> On 20/09/21 15:02, Jose R. Ziviani wrote:
> > But, in anyway, I'll still need to store the target architecture that
> > can use such core module, like I did here in this patch. Otherwise,
> > if I compile different targets at the same time, I'll end up with the
> > same problem of targets trying to load wrong modules.
> >
> > I thought of using qom, but I think it will pollute module.c.
>
> Alternatively, you could C-ify the contents of config-devices.mak, and embed
> them in the per-arch modinfo-*.c; and record CONFIG_* symbols for each
> module (e.g. '{ "CONFIG_QXL", "hw-display-qxl" }' from a
> 'module_config("CONFIG_QXL")' line in the global modinfo.c file. Then
> before loading a module you do a binary search on the per-arch
> config-devices array.
With a per-arch modinfo-*.c we don't even need a modinfo.c global, do
we?
Each target could be linked to its own modinfo-target.c only.
>
> I hope the above is readable. :)
Absolutely, thank you for your suggestion!!
>
> Paolo
signature.asc
Description: Digital signature
- [PATCH 0/2] modules: Improve modinfo.c architecture support, Jose R. Ziviani, 2021/09/16
- [PATCH 1/2] meson: introduce modules_arch, Jose R. Ziviani, 2021/09/16
- Re: [PATCH 1/2] meson: introduce modules_arch, Gerd Hoffmann, 2021/09/17
- Re: [PATCH 1/2] meson: introduce modules_arch, Jose R. Ziviani, 2021/09/17
- Re: [PATCH 1/2] meson: introduce modules_arch, Gerd Hoffmann, 2021/09/20
- Re: [PATCH 1/2] meson: introduce modules_arch, Jose R. Ziviani, 2021/09/20
- Re: [PATCH 1/2] meson: introduce modules_arch, Paolo Bonzini, 2021/09/20
- Re: [PATCH 1/2] meson: introduce modules_arch,
Jose R. Ziviani <=
- Re: [PATCH 1/2] meson: introduce modules_arch, Paolo Bonzini, 2021/09/23
- Re: [PATCH 1/2] meson: introduce modules_arch, Gerd Hoffmann, 2021/09/21
- Re: [PATCH 1/2] meson: introduce modules_arch, Jose R. Ziviani, 2021/09/21
- Re: [PATCH 1/2] meson: introduce modules_arch, Gerd Hoffmann, 2021/09/21
[PATCH 2/2] modules: use a list of supported arch for each module, Jose R. Ziviani, 2021/09/16