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:
Nathan Binkert 2007-04-18 16:56:06 -07:00
parent 6f4c1aa475
commit 5825104982

View file

@ -133,30 +133,23 @@ rmtree(release_dir, 'src/dev/i8*')
remove(release_dir, 'util/chgcopyright') remove(release_dir, 'util/chgcopyright')
remove(release_dir, 'util/make_release.py') remove(release_dir, 'util/make_release.py')
# fix up the SConscript to deal with files we've removed def remove_sources(regex, subdir):
mem_expr = re.compile('.*mem/cache/(tags/split|prefetch/(ghb|stride)).*') script = joinpath(release_dir, subdir, 'SConscript')
inscript = file(joinpath(release_dir, 'src', 'SConscript'), 'r').readlines() if isinstance(regex, str):
outscript = file(joinpath(release_dir, 'src', 'SConscript'), 'w') regex = re.compile(regex)
for line in inscript: inscript = file(script, 'r').readlines()
if mem_expr.match(line): outscript = file(script, 'w')
continue for line in inscript:
if regex.match(line):
continue
outscript.write(line) outscript.write(line)
outscript.close() outscript.close()
# fix up the SConscript to deal with files we've removed # fix up the SConscript to deal with files we've removed
mem_expr = re.compile('.*i8254xGBe.*') remove_sources(r'.*split.*\.cc', 'src/mem/cache/tags')
inscript = file(joinpath(release_dir, 'src', 'dev', 'SConscript'), 'r').readlines() remove_sources(r'.*(ghb|stride)_prefetcher\.cc', 'src/mem/cache/prefetch')
outscript = file(joinpath(release_dir, 'src', 'dev', 'SConscript'), 'w') remove_sources(r'.*i8254xGBe.*', 'src/dev')
for line in inscript:
if mem_expr.match(line):
continue
outscript.write(line)
outscript.close()
benches = [ 'bzip2', 'eon', 'gzip', 'mcf', 'parser', 'perlbmk', benches = [ 'bzip2', 'eon', 'gzip', 'mcf', 'parser', 'perlbmk',
'twolf', 'vortex' ] 'twolf', 'vortex' ]