SConscript revision 6993
12086SN/A# -*- mode:python -*- 22086SN/A 35268Sksewell@umich.edu# Copyright (c) 2007-2008 The Florida State University 42086SN/A# Copyright (c) 2009 ARM Limited 52086SN/A# All rights reserved. 62086SN/A# 72086SN/A# Redistribution and use in source and binary forms, with or without 82086SN/A# modification, are permitted provided that the following conditions are 92086SN/A# met: redistributions of source code must retain the above copyright 102086SN/A# notice, this list of conditions and the following disclaimer; 112086SN/A# redistributions in binary form must reproduce the above copyright 122086SN/A# notice, this list of conditions and the following disclaimer in the 132086SN/A# documentation and/or other materials provided with the distribution; 142086SN/A# neither the name of the copyright holders nor the names of its 152086SN/A# contributors may be used to endorse or promote products derived from 162086SN/A# this software without specific prior written permission. 172086SN/A# 182086SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 192086SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 202086SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 212086SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 222086SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 232086SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 242086SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 252086SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 262086SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 272086SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 282665Ssaidi@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 292665Ssaidi@eecs.umich.edu# 302665Ssaidi@eecs.umich.edu# Authors: Stephen Hines 312686Sksewell@umich.edu# Ali Saidi 322086SN/A 334202Sbinkertn@umich.eduImport('*') 342086SN/A 354202Sbinkertn@umich.eduif env['TARGET_ISA'] == 'arm': 364202Sbinkertn@umich.edu# Workaround for bug in SCons version > 0.97d20071212 376313Sgblack@eecs.umich.edu# Scons bug id: 2006 M5 Bug id: 308 384997Sgblack@eecs.umich.edu Dir('isa/formats') 395222Sksewell@umich.edu Source('faults.cc') 404202Sbinkertn@umich.edu Source('insts/branch.cc') 415222Sksewell@umich.edu Source('insts/mem.cc') 424997Sgblack@eecs.umich.edu Source('insts/pred_inst.cc') 434997Sgblack@eecs.umich.edu Source('insts/static_inst.cc') 445192Ssaidi@eecs.umich.edu Source('nativetrace.cc') 455192Ssaidi@eecs.umich.edu Source('pagetable.cc') 464202Sbinkertn@umich.edu Source('tlb.cc') 475222Sksewell@umich.edu Source('vtophys.cc') 485647Sgblack@eecs.umich.edu Source('utility.cc') 495222Sksewell@umich.edu 505222Sksewell@umich.edu SimObject('ArmNativeTrace.py') 515222Sksewell@umich.edu SimObject('ArmTLB.py') 525222Sksewell@umich.edu 535222Sksewell@umich.edu TraceFlag('Arm') 545222Sksewell@umich.edu TraceFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 555222Sksewell@umich.edu if env['FULL_SYSTEM']: 565222Sksewell@umich.edu Source('interrupts.cc') 574202Sbinkertn@umich.edu Source('stacktrace.cc') 584202Sbinkertn@umich.edu Source('system.cc') 594202Sbinkertn@umich.edu 604202Sbinkertn@umich.edu SimObject('ArmInterrupts.py') 612086SN/A SimObject('ArmSystem.py') 624202Sbinkertn@umich.edu else: 634202Sbinkertn@umich.edu Source('process.cc') 644202Sbinkertn@umich.edu Source('linux/linux.cc') 654202Sbinkertn@umich.edu Source('linux/process.cc') 664202Sbinkertn@umich.edu 674202Sbinkertn@umich.edu # Add in files generated by the ISA description. 68 isa_desc_files = env.ISADesc('isa/main.isa') 69 # Only non-header files need to be compiled. 70 for f in isa_desc_files: 71 if not f.path.endswith('.hh'): 72 Source(f) 73 74