SConscript revision 8887
12086SN/A# -*- mode:python -*-
22086SN/A
32086SN/A# Copyright (c) 2009 ARM Limited
42086SN/A# All rights reserved.
52086SN/A#
62086SN/A# The license below extends only to copyright in the software and shall
72086SN/A# not be construed as granting a license to any other intellectual
82086SN/A# property including but not limited to intellectual property relating
92086SN/A# to a hardware implementation of the functionality of the software
102086SN/A# licensed hereunder.  You may use the software subject to the license
112086SN/A# terms below provided that you ensure that this notice is replicated
122086SN/A# unmodified and in its entirety in all distributions of the software,
132086SN/A# modified or unmodified, in source code or in binary form.
142086SN/A#
152086SN/A# Copyright (c) 2007-2008 The Florida State University
162086SN/A# All rights reserved.
172086SN/A#
182086SN/A# Redistribution and use in source and binary forms, with or without
192086SN/A# modification, are permitted provided that the following conditions are
202086SN/A# met: redistributions of source code must retain the above copyright
212086SN/A# notice, this list of conditions and the following disclaimer;
222086SN/A# redistributions in binary form must reproduce the above copyright
232086SN/A# notice, this list of conditions and the following disclaimer in the
242086SN/A# documentation and/or other materials provided with the distribution;
252086SN/A# neither the name of the copyright holders nor the names of its
262086SN/A# contributors may be used to endorse or promote products derived from
272086SN/A# this software without specific prior written permission.
282665Ssaidi@eecs.umich.edu#
292665Ssaidi@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
302665Ssaidi@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
312086SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
324202Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
332086SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
344202Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
355403Shines@cs.fsu.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
365403Shines@cs.fsu.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
375403Shines@cs.fsu.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
385403Shines@cs.fsu.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
394202Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
404202Sbinkertn@umich.edu#
414202Sbinkertn@umich.edu# Authors: Stephen Hines
424202Sbinkertn@umich.edu#          Ali Saidi
434202Sbinkertn@umich.edu
444997Sgblack@eecs.umich.eduImport('*')
454202Sbinkertn@umich.edu
464202Sbinkertn@umich.eduif env['TARGET_ISA'] == 'arm':
474997Sgblack@eecs.umich.edu# Workaround for bug in SCons version > 0.97d20071212
484826Ssaidi@eecs.umich.edu# Scons bug id: 2006 M5 Bug id: 308 
492086SN/A    Dir('isa/formats')
504997Sgblack@eecs.umich.edu    Source('faults.cc')
515192Ssaidi@eecs.umich.edu    Source('insts/macromem.cc')
524997Sgblack@eecs.umich.edu    Source('insts/mem.cc')
534202Sbinkertn@umich.edu    Source('insts/misc.cc')
544486Sbinkertn@umich.edu    Source('insts/pred_inst.cc')
555647Sgblack@eecs.umich.edu    Source('insts/static_inst.cc')
564486Sbinkertn@umich.edu    Source('insts/vfp.cc')
575647Sgblack@eecs.umich.edu    Source('interrupts.cc')
584202Sbinkertn@umich.edu    Source('isa.cc')
594202Sbinkertn@umich.edu    Source('linux/linux.cc')
604202Sbinkertn@umich.edu    Source('linux/process.cc')
614202Sbinkertn@umich.edu    Source('linux/system.cc')
624202Sbinkertn@umich.edu    Source('miscregs.cc')
634202Sbinkertn@umich.edu    Source('nativetrace.cc')
642086SN/A    Source('predecoder.cc')
654202Sbinkertn@umich.edu    Source('process.cc')
664202Sbinkertn@umich.edu    Source('remote_gdb.cc')
674202Sbinkertn@umich.edu    Source('stacktrace.cc')
682086SN/A    Source('system.cc')
694202Sbinkertn@umich.edu    Source('table_walker.cc')
704202Sbinkertn@umich.edu    Source('tlb.cc')
712086SN/A    Source('utility.cc')
724202Sbinkertn@umich.edu    Source('vtophys.cc')
734202Sbinkertn@umich.edu
744202Sbinkertn@umich.edu    SimObject('ArmInterrupts.py')
754202Sbinkertn@umich.edu    SimObject('ArmNativeTrace.py')
764202Sbinkertn@umich.edu    SimObject('ArmSystem.py')
774202Sbinkertn@umich.edu    SimObject('ArmTLB.py')
78
79    DebugFlag('Arm')
80    DebugFlag('TLBVerbose')
81    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
82    DebugFlag('Predecoder', "Instructions returned by the predecoder")
83
84    # Add in files generated by the ISA description.
85    isa_desc_files = env.ISADesc('isa/main.isa')
86    # Only non-header files need to be compiled.
87    for f in isa_desc_files:
88        if not f.path.endswith('.hh'):
89            Source(f)
90
91