SConscript revision 9958
16167SN/A# -*- mode:python -*- 26167SN/A 39204Sandreas.hansson@arm.com# Copyright (c) 2009 ARM Limited 49204Sandreas.hansson@arm.com# All rights reserved. 59204Sandreas.hansson@arm.com# 68673SN/A# The license below extends only to copyright in the software and shall 79373Snilay@cs.wisc.edu# not be construed as granting a license to any other intellectual 89373Snilay@cs.wisc.edu# property including but not limited to intellectual property relating 99373Snilay@cs.wisc.edu# to a hardware implementation of the functionality of the software 109373Snilay@cs.wisc.edu# licensed hereunder. You may use the software subject to the license 119373Snilay@cs.wisc.edu# terms below provided that you ensure that this notice is replicated 129150SAli.Saidi@ARM.com# unmodified and in its entirety in all distributions of the software, 139373Snilay@cs.wisc.edu# modified or unmodified, in source code or in binary form. 149150SAli.Saidi@ARM.com# 159150SAli.Saidi@ARM.com# Copyright (c) 2007-2008 The Florida State University 169150SAli.Saidi@ARM.com# All rights reserved. 179150SAli.Saidi@ARM.com# 189150SAli.Saidi@ARM.com# Redistribution and use in source and binary forms, with or without 199373Snilay@cs.wisc.edu# modification, are permitted provided that the following conditions are 209373Snilay@cs.wisc.edu# met: redistributions of source code must retain the above copyright 219150SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer; 229150SAli.Saidi@ARM.com# redistributions in binary form must reproduce the above copyright 239150SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer in the 249373Snilay@cs.wisc.edu# documentation and/or other materials provided with the distribution; 259373Snilay@cs.wisc.edu# neither the name of the copyright holders nor the names of its 269204Sandreas.hansson@arm.com# contributors may be used to endorse or promote products derived from 279204Sandreas.hansson@arm.com# this software without specific prior written permission. 289204Sandreas.hansson@arm.com# 299204Sandreas.hansson@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 309204Sandreas.hansson@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 319373Snilay@cs.wisc.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 329373Snilay@cs.wisc.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 339204Sandreas.hansson@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 349373Snilay@cs.wisc.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 359373Snilay@cs.wisc.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 369113SBrad.Beckmann@amd.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 379113SBrad.Beckmann@amd.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 389113SBrad.Beckmann@amd.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 399113SBrad.Beckmann@amd.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 409113SBrad.Beckmann@amd.com# 419113SBrad.Beckmann@amd.com# Authors: Stephen Hines 428673SN/A# Ali Saidi 439204Sandreas.hansson@arm.com 448673SN/AImport('*') 457935SN/A 469150SAli.Saidi@ARM.comif env['TARGET_ISA'] == 'arm': 479373Snilay@cs.wisc.edu# Workaround for bug in SCons version > 0.97d20071212 489373Snilay@cs.wisc.edu# Scons bug id: 2006 M5 Bug id: 308 498673SN/A Dir('isa/formats') 508673SN/A Source('decoder.cc') 519150SAli.Saidi@ARM.com Source('faults.cc') 529373Snilay@cs.wisc.edu Source('insts/macromem.cc') 537935SN/A Source('insts/mem.cc') 549373Snilay@cs.wisc.edu Source('insts/misc.cc') 559373Snilay@cs.wisc.edu Source('insts/pred_inst.cc') 567935SN/A Source('insts/static_inst.cc') 577935SN/A Source('insts/vfp.cc') 589373Snilay@cs.wisc.edu Source('interrupts.cc') 599150SAli.Saidi@ARM.com Source('isa.cc') 609373Snilay@cs.wisc.edu Source('linux/linux.cc') 617935SN/A Source('linux/process.cc') 629204Sandreas.hansson@arm.com Source('linux/system.cc') 638673SN/A Source('miscregs.cc') 648673SN/A Source('nativetrace.cc') 656167SN/A Source('process.cc') 666167SN/A Source('remote_gdb.cc') 67 Source('stacktrace.cc') 68 Source('system.cc') 69 Source('table_walker.cc') 70 Source('tlb.cc') 71 Source('utility.cc') 72 Source('vtophys.cc') 73 74 SimObject('ArmInterrupts.py') 75 SimObject('ArmISA.py') 76 SimObject('ArmNativeTrace.py') 77 SimObject('ArmSystem.py') 78 SimObject('ArmTLB.py') 79 80 DebugFlag('Arm') 81 DebugFlag('Decoder', "Instructions returned by the predecoder") 82 DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 83 DebugFlag('TLBVerbose') 84 85 # Add in files generated by the ISA description. 86 isa_desc_files = env.ISADesc('isa/main.isa') 87 # Only non-header files need to be compiled. 88 for f in isa_desc_files: 89 if not f.path.endswith('.hh'): 90 Source(f) 91 92