SConscript (6994:c6951099a1cb) SConscript (6998:188393fbc381)
1# -*- mode:python -*-
2
3# Copyright (c) 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

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

102 target = [ 'decoder.cc', 'decoder.hh', 'max_inst_regs.hh' ]
103 # We also get an execute file for each selected CPU model.
104 target += [CpuModel.dict[cpu].filename for cpu in cpu_models]
105
106 return target, source + [ Value(m) for m in cpu_models ]
107
108ARCH_DIR = Dir('.')
109
1# -*- mode:python -*-
2
3# Copyright (c) 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

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

102 target = [ 'decoder.cc', 'decoder.hh', 'max_inst_regs.hh' ]
103 # We also get an execute file for each selected CPU model.
104 target += [CpuModel.dict[cpu].filename for cpu in cpu_models]
105
106 return target, source + [ Value(m) for m in cpu_models ]
107
108ARCH_DIR = Dir('.')
109
110# import ply here because SCons screws with sys.path when performing actions.
111import ply
112
110def isa_desc_action(target, source, env):
111 # Add the current directory to the system path so we can import files
112 sys.path[0:0] = [ ARCH_DIR.srcnode().abspath ]
113 import isa_parser
114
115 models = [ s.get_contents() for s in source[1:] ]
116 cpu_models = [CpuModel.dict[cpu] for cpu in models]
117 parser = isa_parser.ISAParser(target[0].dir.abspath, cpu_models)

--- 12 unchanged lines hidden ---
113def isa_desc_action(target, source, env):
114 # Add the current directory to the system path so we can import files
115 sys.path[0:0] = [ ARCH_DIR.srcnode().abspath ]
116 import isa_parser
117
118 models = [ s.get_contents() for s in source[1:] ]
119 cpu_models = [CpuModel.dict[cpu] for cpu in models]
120 parser = isa_parser.ISAParser(target[0].dir.abspath, cpu_models)

--- 12 unchanged lines hidden ---