mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
scripts: teach modinfo to skip non-C sources
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
ebced09185
commit
20f19713ef
1 changed files with 3 additions and 0 deletions
|
|
@ -51,6 +51,9 @@ def main(args):
|
||||||
with open('compile_commands.json') as f:
|
with open('compile_commands.json') as f:
|
||||||
compile_commands = json.load(f)
|
compile_commands = json.load(f)
|
||||||
for src in args:
|
for src in args:
|
||||||
|
if not src.endswith('.c'):
|
||||||
|
print("MODINFO_DEBUG skip %s" % src)
|
||||||
|
continue
|
||||||
print("MODINFO_DEBUG src %s" % src)
|
print("MODINFO_DEBUG src %s" % src)
|
||||||
command = find_command(src, target, compile_commands)
|
command = find_command(src, target, compile_commands)
|
||||||
cmdline = process_command(src, command)
|
cmdline = process_command(src, command)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue