SConscript revision 9023
112866Sgabeblack@google.com# -*- mode:python -*- 212866Sgabeblack@google.com 312866Sgabeblack@google.com# Copyright (c) 2009 ARM Limited 412866Sgabeblack@google.com# All rights reserved. 512866Sgabeblack@google.com# 612866Sgabeblack@google.com# The license below extends only to copyright in the software and shall 712866Sgabeblack@google.com# not be construed as granting a license to any other intellectual 812866Sgabeblack@google.com# property including but not limited to intellectual property relating 912866Sgabeblack@google.com# to a hardware implementation of the functionality of the software 1012866Sgabeblack@google.com# licensed hereunder. You may use the software subject to the license 1112866Sgabeblack@google.com# terms below provided that you ensure that this notice is replicated 1212866Sgabeblack@google.com# unmodified and in its entirety in all distributions of the software, 1312866Sgabeblack@google.com# modified or unmodified, in source code or in binary form. 1412866Sgabeblack@google.com# 1512866Sgabeblack@google.com# Copyright (c) 2007-2008 The Florida State University 1612866Sgabeblack@google.com# All rights reserved. 1712866Sgabeblack@google.com# 1812866Sgabeblack@google.com# Redistribution and use in source and binary forms, with or without 1912866Sgabeblack@google.com# modification, are permitted provided that the following conditions are 2012866Sgabeblack@google.com# met: redistributions of source code must retain the above copyright 2112866Sgabeblack@google.com# notice, this list of conditions and the following disclaimer; 2212866Sgabeblack@google.com# redistributions in binary form must reproduce the above copyright 2312866Sgabeblack@google.com# notice, this list of conditions and the following disclaimer in the 2412866Sgabeblack@google.com# documentation and/or other materials provided with the distribution; 2512866Sgabeblack@google.com# neither the name of the copyright holders nor the names of its 2612866Sgabeblack@google.com# contributors may be used to endorse or promote products derived from 2712866Sgabeblack@google.com# this software without specific prior written permission. 2812866Sgabeblack@google.com# 2912866Sgabeblack@google.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 3012866Sgabeblack@google.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 3112866Sgabeblack@google.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 3212866Sgabeblack@google.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 3312866Sgabeblack@google.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 3412866Sgabeblack@google.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 3512866Sgabeblack@google.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 3612866Sgabeblack@google.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 3712866Sgabeblack@google.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3812866Sgabeblack@google.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3912866Sgabeblack@google.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 4012866Sgabeblack@google.com# 4112866Sgabeblack@google.com# Authors: Stephen Hines 4212866Sgabeblack@google.com# Ali Saidi 4312866Sgabeblack@google.com 4412866Sgabeblack@google.comImport('*') 4512866Sgabeblack@google.com 4612866Sgabeblack@google.comif env['TARGET_ISA'] == 'arm': 4712866Sgabeblack@google.com# Workaround for bug in SCons version > 0.97d20071212 4812866Sgabeblack@google.com# Scons bug id: 2006 M5 Bug id: 308 4912866Sgabeblack@google.com Dir('isa/formats') 5012866Sgabeblack@google.com Source('decoder.cc') 5112866Sgabeblack@google.com Source('faults.cc') 5212866Sgabeblack@google.com Source('insts/macromem.cc') 5312866Sgabeblack@google.com Source('insts/mem.cc') 5412866Sgabeblack@google.com Source('insts/misc.cc') 5512866Sgabeblack@google.com Source('insts/pred_inst.cc') 5612866Sgabeblack@google.com Source('insts/static_inst.cc') 5712866Sgabeblack@google.com Source('insts/vfp.cc') 5812866Sgabeblack@google.com Source('interrupts.cc') 5912866Sgabeblack@google.com Source('isa.cc') 6012866Sgabeblack@google.com Source('linux/linux.cc') 6112866Sgabeblack@google.com Source('linux/process.cc') 6212866Sgabeblack@google.com Source('linux/system.cc') 6312866Sgabeblack@google.com Source('miscregs.cc') 6412866Sgabeblack@google.com Source('nativetrace.cc') 6512922Sgabeblack@google.com Source('process.cc') 6612869Sgabeblack@google.com Source('remote_gdb.cc') 6712866Sgabeblack@google.com Source('stacktrace.cc') 6812869Sgabeblack@google.com Source('system.cc') 6912866Sgabeblack@google.com Source('table_walker.cc') 7012866Sgabeblack@google.com Source('tlb.cc') 7112866Sgabeblack@google.com Source('utility.cc') 7212866Sgabeblack@google.com Source('vtophys.cc') 7312866Sgabeblack@google.com 7412866Sgabeblack@google.com SimObject('ArmInterrupts.py') 7512866Sgabeblack@google.com SimObject('ArmNativeTrace.py') 7612866Sgabeblack@google.com SimObject('ArmSystem.py') 7712866Sgabeblack@google.com SimObject('ArmTLB.py') 7812866Sgabeblack@google.com 7912922Sgabeblack@google.com DebugFlag('Arm') 8012866Sgabeblack@google.com DebugFlag('Decoder', "Instructions returned by the predecoder") 8112866Sgabeblack@google.com DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 8212866Sgabeblack@google.com DebugFlag('TLBVerbose') 8312866Sgabeblack@google.com 8412869Sgabeblack@google.com # Add in files generated by the ISA description. 8512869Sgabeblack@google.com isa_desc_files = env.ISADesc('isa/main.isa') 8612869Sgabeblack@google.com # Only non-header files need to be compiled. 8712869Sgabeblack@google.com for f in isa_desc_files: 8812869Sgabeblack@google.com if not f.path.endswith('.hh'): 8912869Sgabeblack@google.com Source(f) 9012869Sgabeblack@google.com 9112869Sgabeblack@google.com