SConscript revision 8757
11736SN/A# -*- mode:python -*- 21736SN/A 31736SN/A# Copyright (c) 2009 ARM Limited 41736SN/A# All rights reserved. 51736SN/A# 61736SN/A# The license below extends only to copyright in the software and shall 71736SN/A# not be construed as granting a license to any other intellectual 81736SN/A# property including but not limited to intellectual property relating 91736SN/A# to a hardware implementation of the functionality of the software 101736SN/A# licensed hereunder. You may use the software subject to the license 111736SN/A# terms below provided that you ensure that this notice is replicated 121736SN/A# unmodified and in its entirety in all distributions of the software, 131736SN/A# modified or unmodified, in source code or in binary form. 141736SN/A# 151736SN/A# Copyright (c) 2007-2008 The Florida State University 161736SN/A# All rights reserved. 171736SN/A# 181736SN/A# Redistribution and use in source and binary forms, with or without 191736SN/A# modification, are permitted provided that the following conditions are 201736SN/A# met: redistributions of source code must retain the above copyright 211736SN/A# notice, this list of conditions and the following disclaimer; 221736SN/A# redistributions in binary form must reproduce the above copyright 231736SN/A# notice, this list of conditions and the following disclaimer in the 241736SN/A# documentation and/or other materials provided with the distribution; 251736SN/A# neither the name of the copyright holders nor the names of its 262665Ssaidi@eecs.umich.edu# contributors may be used to endorse or promote products derived from 272665Ssaidi@eecs.umich.edu# this software without specific prior written permission. 281736SN/A# 296654Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 306654Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 316654Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 322655Sstever@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 334762Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 348222Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 3511802Sandreas.sandberg@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 368222Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 378222Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3811802Sandreas.sandberg@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3911802Sandreas.sandberg@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 404762Snate@binkert.org# 4111802Sandreas.sandberg@arm.com# Authors: Stephen Hines 4211802Sandreas.sandberg@arm.com# Ali Saidi 434762Snate@binkert.org 4411802Sandreas.sandberg@arm.comImport('*') 456654Snate@binkert.org 466654Snate@binkert.orgif env['TARGET_ISA'] == 'arm': 476654Snate@binkert.org# Workaround for bug in SCons version > 0.97d20071212 486654Snate@binkert.org# Scons bug id: 2006 M5 Bug id: 308 496654Snate@binkert.org Dir('isa/formats') 506654Snate@binkert.org Source('faults.cc') 515798Snate@binkert.org Source('insts/macromem.cc') 524852Snate@binkert.org Source('insts/mem.cc') 538234Snate@binkert.org Source('insts/misc.cc') 544852Snate@binkert.org Source('insts/pred_inst.cc') 559342SAndreas.Sandberg@arm.com Source('insts/static_inst.cc') 56 Source('insts/vfp.cc') 57 Source('interrupts.cc') 58 Source('isa.cc') 59 Source('miscregs.cc') 60 Source('nativetrace.cc') 61 Source('predecoder.cc') 62 Source('remote_gdb.cc') 63 Source('table_walker.cc') 64 Source('tlb.cc') 65 Source('utility.cc') 66 Source('vtophys.cc') 67 68 SimObject('ArmInterrupts.py') 69 SimObject('ArmNativeTrace.py') 70 SimObject('ArmTLB.py') 71 72 DebugFlag('Arm') 73 DebugFlag('TLBVerbose') 74 DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 75 DebugFlag('Predecoder', "Instructions returned by the predecoder") 76 if env['FULL_SYSTEM']: 77 Source('stacktrace.cc') 78 Source('system.cc') 79 Source('linux/system.cc') 80 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