SConscript revision 7799
12086SN/A# -*- mode:python -*- 22086SN/A 35268Sksewell@umich.edu# 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 312686Sksewell@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 322086SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 334202Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 342086SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 354202Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 368775Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 378758Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 384202Sbinkertn@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 398775Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 408745Sgblack@eecs.umich.edu# 416313Sgblack@eecs.umich.edu# Authors: Stephen Hines 428775Sgblack@eecs.umich.edu# Ali Saidi 438775Sgblack@eecs.umich.edu 448775Sgblack@eecs.umich.eduImport('*') 458758Sgblack@eecs.umich.edu 468775Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'arm': 478758Sgblack@eecs.umich.edu# Workaround for bug in SCons version > 0.97d20071212 488775Sgblack@eecs.umich.edu# Scons bug id: 2006 M5 Bug id: 308 498775Sgblack@eecs.umich.edu Dir('isa/formats') 504997Sgblack@eecs.umich.edu Source('faults.cc') 514202Sbinkertn@umich.edu Source('insts/macromem.cc') 528758Sgblack@eecs.umich.edu Source('insts/mem.cc') 534997Sgblack@eecs.umich.edu Source('insts/misc.cc') 548745Sgblack@eecs.umich.edu Source('insts/pred_inst.cc') 558775Sgblack@eecs.umich.edu Source('insts/static_inst.cc') 564997Sgblack@eecs.umich.edu Source('insts/vfp.cc') 575192Ssaidi@eecs.umich.edu Source('isa.cc') 588775Sgblack@eecs.umich.edu Source('miscregs.cc') 592086SN/A Source('predecoder.cc') 604202Sbinkertn@umich.edu Source('nativetrace.cc') 614202Sbinkertn@umich.edu Source('tlb.cc') 624202Sbinkertn@umich.edu Source('utility.cc') 634202Sbinkertn@umich.edu Source('remote_gdb.cc') 644202Sbinkertn@umich.edu 654202Sbinkertn@umich.edu SimObject('ArmNativeTrace.py') 66 SimObject('ArmTLB.py') 67 68 TraceFlag('Arm') 69 TraceFlag('TLBVerbose') 70 TraceFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 71 TraceFlag('Predecoder', "Instructions returned by the predecoder") 72 if env['FULL_SYSTEM']: 73 Source('interrupts.cc') 74 Source('stacktrace.cc') 75 Source('system.cc') 76 Source('vtophys.cc') 77 Source('linux/system.cc') 78 Source('table_walker.cc') 79 80 SimObject('ArmInterrupts.py') 81 SimObject('ArmSystem.py') 82 else: 83 Source('process.cc') 84 Source('linux/linux.cc') 85 Source('linux/process.cc') 86 87 # Add in files generated by the ISA description. 88 isa_desc_files = env.ISADesc('isa/main.isa') 89 # Only non-header files need to be compiled. 90 for f in isa_desc_files: 91 if not f.path.endswith('.hh'): 92 Source(f) 93 94