SConscript revision 8758
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 337768SAli.Saidi@ARM.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 347768SAli.Saidi@ARM.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 357768SAli.Saidi@ARM.com# 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 442178SN/AImport('*') 452178SN/A 462178SN/Aif env['TARGET_ISA'] == 'arm': 472155SN/A# Workaround for bug in SCons version > 0.97d20071212 485865Sksewell@umich.edu# Scons bug id: 2006 M5 Bug id: 308 496181Sksewell@umich.edu Dir('isa/formats') 506181Sksewell@umich.edu Source('faults.cc') 515865Sksewell@umich.edu Source('insts/macromem.cc') 523918Ssaidi@eecs.umich.edu Source('insts/mem.cc') 535865Sksewell@umich.edu Source('insts/misc.cc') 542623SN/A Source('insts/pred_inst.cc') 553918Ssaidi@eecs.umich.edu Source('insts/static_inst.cc') 562155SN/A Source('insts/vfp.cc') 572155SN/A Source('interrupts.cc') 582292SN/A Source('isa.cc') 596181Sksewell@umich.edu Source('miscregs.cc') 606181Sksewell@umich.edu Source('nativetrace.cc') 613918Ssaidi@eecs.umich.edu Source('predecoder.cc') 622292SN/A Source('remote_gdb.cc') 632292SN/A Source('table_walker.cc') 642292SN/A Source('tlb.cc') 653918Ssaidi@eecs.umich.edu Source('utility.cc') 662292SN/A Source('vtophys.cc') 672292SN/A 682766Sktlim@umich.edu SimObject('ArmInterrupts.py') 692766Sktlim@umich.edu SimObject('ArmNativeTrace.py') 702766Sktlim@umich.edu SimObject('ArmTLB.py') 712921Sktlim@umich.edu 722921Sktlim@umich.edu DebugFlag('Arm') 732766Sktlim@umich.edu DebugFlag('TLBVerbose') 742766Sktlim@umich.edu DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 755529Snate@binkert.org DebugFlag('Predecoder', "Instructions returned by the predecoder") 762766Sktlim@umich.edu if env['FULL_SYSTEM']: 774762Snate@binkert.org Source('stacktrace.cc') 782155SN/A Source('system.cc') 792155SN/A Source('linux/system.cc') 802155SN/A 812155SN/A SimObject('ArmSystem.py') 822155SN/A else: 832155SN/A Source('process.cc') 842766Sktlim@umich.edu Source('linux/linux.cc') 852155SN/A Source('linux/process.cc') 865865Sksewell@umich.edu 872155SN/A # Add in files generated by the ISA description. 882155SN/A isa_desc_files = env.ISADesc('isa/main.isa') 892155SN/A # Only non-header files need to be compiled. 902155SN/A for f in isa_desc_files: 912178SN/A if not f.path.endswith('.hh'): 922178SN/A Source(f) 937756SAli.Saidi@ARM.com 942766Sktlim@umich.edu