SConscript (2632:1bb2f91485ea) SConscript (2637:18e4273315cd)
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

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

127 for cpu in env['CPU_MODELS']]
128
129# The emitter patches up the sources & targets to include the
130# autogenerated files as targets and isa parser itself as a source.
131def isa_desc_emitter(target, source, env):
132 return (isa_desc_gen_files, [isa_parser, cpu_models_file] + source)
133
134# Pieces are in place, so create the builder.
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

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

127 for cpu in env['CPU_MODELS']]
128
129# The emitter patches up the sources & targets to include the
130# autogenerated files as targets and isa parser itself as a source.
131def isa_desc_emitter(target, source, env):
132 return (isa_desc_gen_files, [isa_parser, cpu_models_file] + source)
133
134# Pieces are in place, so create the builder.
135isa_desc_builder = Builder(action='python $SOURCES $TARGET.dir $CPU_MODELS',
135isa_desc_builder = Builder(action='python2.4 $SOURCES $TARGET.dir $CPU_MODELS',
136 emitter = isa_desc_emitter)
137
138env.Append(BUILDERS = { 'ISADesc' : isa_desc_builder })
139
140#
141# Now include other ISA-specific sources from the ISA subdirectories.
142#
143
144isa = env['TARGET_ISA'] # someday this may be a list of ISAs
145
146# Let the target architecture define what additional sources it needs
147sources += SConscript(os.path.join(isa, 'SConscript'),
148 exports = 'env', duplicate = False)
149
150Return('sources')
136 emitter = isa_desc_emitter)
137
138env.Append(BUILDERS = { 'ISADesc' : isa_desc_builder })
139
140#
141# Now include other ISA-specific sources from the ISA subdirectories.
142#
143
144isa = env['TARGET_ISA'] # someday this may be a list of ISAs
145
146# Let the target architecture define what additional sources it needs
147sources += SConscript(os.path.join(isa, 'SConscript'),
148 exports = 'env', duplicate = False)
149
150Return('sources')