qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 03/18] modules: add qemu-modinfo utility


From: Paolo Bonzini
Subject: Re: [PATCH v2 03/18] modules: add qemu-modinfo utility
Date: Wed, 16 Jun 2021 12:53:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1

On 16/06/21 11:16, Gerd Hoffmann wrote:
I was almost giving up... but it looks like the result of
extract_all_objects(recursive: true) can be passed to custom_target(). Then
you can match it after compile_commands.json's "output" key.

Seems the custom_target commands do not land in compile_commands.json.

No, they don't.

The idea was expressed a bit too concisely. :) I was thinking of using extract_all_objects on the module static library, passing the result to modinfo-collect, and looking up the names in compile_commands.json.

Paolo

But I have figured meanwhile that looking for the target name in the
command line works reliable.  That will will match
-DCONFIG_TARGET="${target}-config-target.h".

Current WIP patch below, seems to work nicely.  Whole patch series needs
an overhaul now ...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]