SConscript (2718:4d3ca9c6a995) SConscript (2766:0844a9607f77)
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

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

123
124# Several files are generated from the ISA description.
125# We always get the basic decoder and header file.
126isa_desc_gen_files = Split('decoder.cc decoder.hh')
127# We also get an execute file for each selected CPU model.
128isa_desc_gen_files += [CpuModel.dict[cpu].filename
129 for cpu in env['CPU_MODELS']]
130
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

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

123
124# Several files are generated from the ISA description.
125# We always get the basic decoder and header file.
126isa_desc_gen_files = Split('decoder.cc decoder.hh')
127# We also get an execute file for each selected CPU model.
128isa_desc_gen_files += [CpuModel.dict[cpu].filename
129 for cpu in env['CPU_MODELS']]
130
131# Also include the CheckerCPU as one of the models if it is being
132# enabled via command line.
133if env['USE_CHECKER']:
134 isa_desc_gen_files += [CpuModel.dict['CheckerCPU'].filename]
135
131# The emitter patches up the sources & targets to include the
132# autogenerated files as targets and isa parser itself as a source.
133def isa_desc_emitter(target, source, env):
134 return (isa_desc_gen_files, [isa_parser, cpu_models_file] + source)
135
136# Pieces are in place, so create the builder.
137python = sys.executable # use same Python binary used to run scons
138isa_desc_builder = Builder(action=python + ' $SOURCES $TARGET.dir $CPU_MODELS',

--- 14 unchanged lines hidden ---
136# The emitter patches up the sources & targets to include the
137# autogenerated files as targets and isa parser itself as a source.
138def isa_desc_emitter(target, source, env):
139 return (isa_desc_gen_files, [isa_parser, cpu_models_file] + source)
140
141# Pieces are in place, so create the builder.
142python = sys.executable # use same Python binary used to run scons
143isa_desc_builder = Builder(action=python + ' $SOURCES $TARGET.dir $CPU_MODELS',

--- 14 unchanged lines hidden ---