update the stuff that's removed from the SConscripts
since things have moved around a bit --HG-- extra : convert_revision : 79322a65af6140d0c41aed0b381587eb05d72fd9
This commit is contained in:
parent
6f4c1aa475
commit
5825104982
1 changed files with 14 additions and 21 deletions
|
@ -133,30 +133,23 @@ rmtree(release_dir, 'src/dev/i8*')
|
|||
remove(release_dir, 'util/chgcopyright')
|
||||
remove(release_dir, 'util/make_release.py')
|
||||
|
||||
# fix up the SConscript to deal with files we've removed
|
||||
mem_expr = re.compile('.*mem/cache/(tags/split|prefetch/(ghb|stride)).*')
|
||||
inscript = file(joinpath(release_dir, 'src', 'SConscript'), 'r').readlines()
|
||||
outscript = file(joinpath(release_dir, 'src', 'SConscript'), 'w')
|
||||
for line in inscript:
|
||||
if mem_expr.match(line):
|
||||
continue
|
||||
def remove_sources(regex, subdir):
|
||||
script = joinpath(release_dir, subdir, 'SConscript')
|
||||
if isinstance(regex, str):
|
||||
regex = re.compile(regex)
|
||||
inscript = file(script, 'r').readlines()
|
||||
outscript = file(script, 'w')
|
||||
for line in inscript:
|
||||
if regex.match(line):
|
||||
continue
|
||||
|
||||
outscript.write(line)
|
||||
outscript.close()
|
||||
outscript.write(line)
|
||||
outscript.close()
|
||||
|
||||
# fix up the SConscript to deal with files we've removed
|
||||
mem_expr = re.compile('.*i8254xGBe.*')
|
||||
inscript = file(joinpath(release_dir, 'src', 'dev', 'SConscript'), 'r').readlines()
|
||||
outscript = file(joinpath(release_dir, 'src', 'dev', 'SConscript'), 'w')
|
||||
for line in inscript:
|
||||
if mem_expr.match(line):
|
||||
continue
|
||||
|
||||
outscript.write(line)
|
||||
outscript.close()
|
||||
|
||||
|
||||
|
||||
remove_sources(r'.*split.*\.cc', 'src/mem/cache/tags')
|
||||
remove_sources(r'.*(ghb|stride)_prefetcher\.cc', 'src/mem/cache/prefetch')
|
||||
remove_sources(r'.*i8254xGBe.*', 'src/dev')
|
||||
|
||||
benches = [ 'bzip2', 'eon', 'gzip', 'mcf', 'parser', 'perlbmk',
|
||||
'twolf', 'vortex' ]
|
||||
|
|
Loading…
Reference in a new issue