SConscript (5680:39ae093fb4eb) SConscript (5793:321f79ddb500)
1# -*- mode:python -*-
2
3# Copyright (c) 2005-2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 343 unchanged lines hidden (view full) ---

352 isa_desc_files = env.ISADesc('isa/main.isa')
353 for f in isa_desc_files:
354 # Add in python file dependencies that won't be caught otherwise
355 for pyfile in python_files:
356 env.Depends(f, "isa/insts/%s" % pyfile)
357 # Only non-header files need to be compiled.
358 if not f.path.endswith('.hh'):
359 Source(f)
1# -*- mode:python -*-
2
3# Copyright (c) 2005-2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 343 unchanged lines hidden (view full) ---

352 isa_desc_files = env.ISADesc('isa/main.isa')
353 for f in isa_desc_files:
354 # Add in python file dependencies that won't be caught otherwise
355 for pyfile in python_files:
356 env.Depends(f, "isa/insts/%s" % pyfile)
357 # Only non-header files need to be compiled.
358 if not f.path.endswith('.hh'):
359 Source(f)
360
361 # Workaround for bug in SCons version > 0.97d20071212
362 # Scons bug id: 2006 M5 Bug id: 308
363 from os.path import dirname, join as joinpath
364
365 Dir('isa')
366 Dir('isa/microops')
367 Dir('isa/decoder')
368 Dir('isa/formats')
369 Dir('isa/insts')
370 isa_dirs = set(map(lambda x:dirname(x), python_files))
371 for d in isa_dirs:
372 Dir(joinpath('isa/insts', d))
373