SConscript revision 7768
12155SN/A# -*- mode:python -*- 22155SN/A 32155SN/A# Copyright (c) 2009 ARM Limited 42155SN/A# All rights reserved. 52155SN/A# 62155SN/A# The license below extends only to copyright in the software and shall 72155SN/A# not be construed as granting a license to any other intellectual 82155SN/A# property including but not limited to intellectual property relating 92155SN/A# to a hardware implementation of the functionality of the software 102155SN/A# licensed hereunder. You may use the software subject to the license 112155SN/A# terms below provided that you ensure that this notice is replicated 122155SN/A# unmodified and in its entirety in all distributions of the software, 132155SN/A# modified or unmodified, in source code or in binary form. 142155SN/A# 152155SN/A# Copyright (c) 2007-2008 The Florida State University 162155SN/A# All rights reserved. 172155SN/A# 182155SN/A# Redistribution and use in source and binary forms, with or without 192155SN/A# modification, are permitted provided that the following conditions are 202155SN/A# met: redistributions of source code must retain the above copyright 212155SN/A# notice, this list of conditions and the following disclaimer; 222155SN/A# redistributions in binary form must reproduce the above copyright 232155SN/A# notice, this list of conditions and the following disclaimer in the 242155SN/A# documentation and/or other materials provided with the distribution; 252155SN/A# neither the name of the copyright holders nor the names of its 262155SN/A# contributors may be used to endorse or promote products derived from 272155SN/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 302155SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 314202Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 322155SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 332178SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 342178SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 352178SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 362178SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 372178SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 382178SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 392178SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 402178SN/A# 412178SN/A# Authors: Stephen Hines 422178SN/A# Ali Saidi 432178SN/A 442155SN/AImport('*') 455865Sksewell@umich.edu 466181Sksewell@umich.eduif env['TARGET_ISA'] == 'arm': 476181Sksewell@umich.edu# Workaround for bug in SCons version > 0.97d20071212 485865Sksewell@umich.edu# Scons bug id: 2006 M5 Bug id: 308 493918Ssaidi@eecs.umich.edu Dir('isa/formats') 505865Sksewell@umich.edu Source('faults.cc') 512623SN/A Source('insts/macromem.cc') 523918Ssaidi@eecs.umich.edu Source('insts/mem.cc') 532155SN/A Source('insts/misc.cc') 542155SN/A Source('insts/pred_inst.cc') 552292SN/A Source('insts/static_inst.cc') 566181Sksewell@umich.edu Source('insts/vfp.cc') 576181Sksewell@umich.edu Source('isa.cc') 583918Ssaidi@eecs.umich.edu Source('miscregs.cc') 592292SN/A Source('predecoder.cc') 602292SN/A Source('nativetrace.cc') 612292SN/A Source('tlb.cc') 623918Ssaidi@eecs.umich.edu Source('utility.cc') 632292SN/A Source('remote_gdb.cc') 642292SN/A 652766Sktlim@umich.edu SimObject('ArmNativeTrace.py') 662766Sktlim@umich.edu SimObject('ArmTLB.py') 672766Sktlim@umich.edu 682921Sktlim@umich.edu TraceFlag('Arm') 692921Sktlim@umich.edu TraceFlag('TLBVerbose') 702766Sktlim@umich.edu TraceFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 712766Sktlim@umich.edu TraceFlag('Predecoder', "Instructions returned by the predecoder") 725529Snate@binkert.org if env['FULL_SYSTEM']: 732766Sktlim@umich.edu Source('interrupts.cc') 744762Snate@binkert.org Source('stacktrace.cc') 752155SN/A Source('system.cc') 762155SN/A Source('vtophys.cc') 772155SN/A Source('linux/system.cc') 782155SN/A Source('table_walker.cc') 792155SN/A 802155SN/A SimObject('ArmInterrupts.py') 812766Sktlim@umich.edu SimObject('ArmSystem.py') 822155SN/A else: 835865Sksewell@umich.edu Source('process.cc') 842155SN/A Source('linux/linux.cc') 852155SN/A Source('linux/process.cc') 862155SN/A 872155SN/A # Add in files generated by the ISA description. 882178SN/A isa_desc_files = env.ISADesc('isa/main.isa') 892178SN/A # Only non-header files need to be compiled. 902178SN/A for f in isa_desc_files: 912766Sktlim@umich.edu if not f.path.endswith('.hh'): 922178SN/A Source(f) 932178SN/A 946994Snate@binkert.org