]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
scripts: teach modinfo to skip non-C sources
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 15 Jul 2021 07:54:13 +0000 (11:54 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 21 Dec 2021 06:50:21 +0000 (10:50 +0400)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
scripts/modinfo-collect.py

index 4acb188c3e89fc0f825366278ed307c55f1ae79b..61b90688c6dc983a21fb3b9043883c5f7c598e4c 100755 (executable)
@@ -51,6 +51,9 @@ def main(args):
     with open('compile_commands.json') as f:
         compile_commands = json.load(f)
     for src in args:
+        if not src.endswith('.c'):
+            print("MODINFO_DEBUG skip %s" % src)
+            continue
         print("MODINFO_DEBUG src %s" % src)
         command = find_command(src, target, compile_commands)
         cmdline = process_command(src, command)