SConscript (5359:8c6ff200e4c1) | SConscript (5406:fc680749b40e) |
---|---|
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 --- 339 unchanged lines hidden (view full) --- 348 isa_desc_files = env.ISADesc('isa/main.isa') 349 for f in isa_desc_files: 350 # Add in python file dependencies that won't be caught otherwise 351 for pyfile in python_files: 352 env.Depends(f, "isa/insts/%s" % pyfile) 353 # Only non-header files need to be compiled. 354 if not f.path.endswith('.hh'): 355 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 --- 339 unchanged lines hidden (view full) --- 348 isa_desc_files = env.ISADesc('isa/main.isa') 349 for f in isa_desc_files: 350 # Add in python file dependencies that won't be caught otherwise 351 for pyfile in python_files: 352 env.Depends(f, "isa/insts/%s" % pyfile) 353 # Only non-header files need to be compiled. 354 if not f.path.endswith('.hh'): 355 Source(f) |
356 357 # Workaround for bug in SCons version > 0.97d20071212 358 # Scons bug id: 2006 M5 Bug id: 308 359 from os.path import dirname, join as joinpath 360 361 Dir('isa') 362 Dir('isa/microops') 363 Dir('isa/decoder') 364 Dir('isa/formats') 365 Dir('isa/insts') 366 isa_dirs = set(map(lambda x:dirname(x), python_files)) 367 for d in isa_dirs: 368 Dir(joinpath('isa/insts', d)) 369 |
|