aboutsummaryrefslogtreecommitdiff
path: root/scripts/modinfo-collect.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/modinfo-collect.py')
-rwxr-xr-xscripts/modinfo-collect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/modinfo-collect.py b/scripts/modinfo-collect.py
index 4acb188c3e..61b90688c6 100755
--- a/scripts/modinfo-collect.py
+++ b/scripts/modinfo-collect.py
@@ -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)