Deleted Added
sdiff udiff text old ( 2667:fe64b8353b1c ) new ( 2718:4d3ca9c6a995 )
full compact
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

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

23# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# Authors: Steve Reinhardt
30
31import os.path
32
33# Import build environment variable from SConstruct.
34Import('env')
35
36# Right now there are no source files immediately in this directory
37sources = []
38
39#################################################################

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

129 for cpu in env['CPU_MODELS']]
130
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.
137isa_desc_builder = Builder(action='python2.4 $SOURCES $TARGET.dir $CPU_MODELS',
138 emitter = isa_desc_emitter)
139
140env.Append(BUILDERS = { 'ISADesc' : isa_desc_builder })
141
142#
143# Now include other ISA-specific sources from the ISA subdirectories.
144#
145
146isa = env['TARGET_ISA'] # someday this may be a list of ISAs
147
148# Let the target architecture define what additional sources it needs
149sources += SConscript(os.path.join(isa, 'SConscript'), exports = 'env')
150
151Return('sources')