diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-01-31 13:52:23 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-01-31 13:52:23 -0500 |
commit | 993934f4cbf8880dfb4906bec8a84a4f3ed380ac (patch) | |
tree | 34b5b116cf9f3f9ced1bb398943b1aef414af274 | |
parent | 8b783f8ad2e0d00ddbdc93b81af7bb381dbf8d3d (diff) | |
download | gem5-993934f4cbf8880dfb4906bec8a84a4f3ed380ac.tar.xz |
Add a scaner for .isa files. Ordering it turns out is rather important
here, so it has to be defined before the rule to that calls
isa_parser.py
--HG--
extra : convert_revision : dbba3c7ee71ca8ca1fcbf5ee65ae83b4ecb63649
-rw-r--r-- | SConscript | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/SConscript b/SConscript index 7ea1e7638..5b4361298 100644 --- a/SConscript +++ b/SConscript @@ -386,6 +386,25 @@ for opt in env.ExportOptions: ################################################### # +# Add an SCons scanner for ISA files +# +################################################### +def ISAScan(): + return SCons.Scanner.Classic("ISAScan", + "$ISASUFFIXES", + "SRCDIR", + '^[ \t]*##[ \t]*include[ \t]*"([^>"]+)"') + +def ISAPath(env, dir, a=None): + return (Dir(env['SRCDIR']), Dir('.')) + +iscan = Scanner(function = ISAScan().scan, skeys = [".isa", ".ISA"], + path_function = ISAPath) +env.Append(SCANNERS = iscan) + + +################################################### +# # Special build rules. # ################################################### |