[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 03/18] modules: add qemu-modinfo utility
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH v2 03/18] modules: add qemu-modinfo utility |
Date: |
Tue, 15 Jun 2021 15:07:15 +0200 |
> > > A Python script could parse compile_commands.json, add -E -DQEMU_MODINFO
> > > to
> > > the command-line option, and look in the output for the metadata.
> >
> > Hmm, worth trying, although I guess it would be easier to code this up
> > straight in meson.build and pull the information you need out of the
> > source set, especially as you'll know then which source files are
> > compiled into which module.
>
> Hmm, looks like I actually need both. Seems there is no easy way to get
> the cflags out of a source_set to construct a cpp command line. Pulling
> this out of compile_commands.json with jq works though.
Well, easy until I look at target-specific modules where the
"source file" -> "command" mapping isn't unique any more. Which makes
this route less attractive ...
Any idea on getting the cflags in meson.build Or maybe I can somehow
ask meson to run the cpp pass only for a given source set?
thanks,
Gerd
- [PATCH v2 00/18] modules: add metadata database, Gerd Hoffmann, 2021/06/10
- [PATCH v2 01/18] modules: add metadata macros, add qxl module annotations, Gerd Hoffmann, 2021/06/10
- [PATCH v2 03/18] modules: add qemu-modinfo utility, Gerd Hoffmann, 2021/06/10
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Gerd Hoffmann, 2021/06/10
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Daniel P . Berrangé, 2021/06/10
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Paolo Bonzini, 2021/06/14
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Paolo Bonzini, 2021/06/14
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Gerd Hoffmann, 2021/06/15
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Gerd Hoffmann, 2021/06/15
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility,
Gerd Hoffmann <=
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Paolo Bonzini, 2021/06/15
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Gerd Hoffmann, 2021/06/16
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Paolo Bonzini, 2021/06/16
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Gerd Hoffmann, 2021/06/14
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Daniel P . Berrangé, 2021/06/14
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Gerd Hoffmann, 2021/06/15
- Re: [PATCH v2 03/18] modules: add qemu-modinfo utility, Daniel P . Berrangé, 2021/06/15
[PATCH v2 02/18] qapi: add ModuleInfo schema, Gerd Hoffmann, 2021/06/10