SConscript revision 7694
1955SN/A# -*- mode:python -*- 2955SN/A 31762SN/A# Copyright (c) 2009 ARM Limited 4955SN/A# All rights reserved. 5955SN/A# 6955SN/A# The license below extends only to copyright in the software and shall 7955SN/A# not be construed as granting a license to any other intellectual 8955SN/A# property including but not limited to intellectual property relating 9955SN/A# to a hardware implementation of the functionality of the software 10955SN/A# licensed hereunder. You may use the software subject to the license 11955SN/A# terms below provided that you ensure that this notice is replicated 12955SN/A# unmodified and in its entirety in all distributions of the software, 13955SN/A# modified or unmodified, in source code or in binary form. 14955SN/A# 15955SN/A# Copyright (c) 2007-2008 The Florida State University 16955SN/A# All rights reserved. 17955SN/A# 18955SN/A# Redistribution and use in source and binary forms, with or without 19955SN/A# modification, are permitted provided that the following conditions are 20955SN/A# met: redistributions of source code must retain the above copyright 21955SN/A# notice, this list of conditions and the following disclaimer; 22955SN/A# redistributions in binary form must reproduce the above copyright 23955SN/A# notice, this list of conditions and the following disclaimer in the 24955SN/A# documentation and/or other materials provided with the distribution; 25955SN/A# neither the name of the copyright holders nor the names of its 26955SN/A# contributors may be used to endorse or promote products derived from 27955SN/A# this software without specific prior written permission. 282665Ssaidi@eecs.umich.edu# 294762Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 30955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 315522Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 326143Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 334762Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 345522Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 35955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 365522Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 37955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 385522Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 394202Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 405742Snate@binkert.org# 41955SN/A# Authors: Stephen Hines 424381Sbinkertn@umich.edu# Ali Saidi 434381Sbinkertn@umich.edu 448334Snate@binkert.orgImport('*') 45955SN/A 46955SN/Aif env['TARGET_ISA'] == 'arm': 474202Sbinkertn@umich.edu# Workaround for bug in SCons version > 0.97d20071212 48955SN/A# Scons bug id: 2006 M5 Bug id: 308 494382Sbinkertn@umich.edu Dir('isa/formats') 504382Sbinkertn@umich.edu Source('faults.cc') 514382Sbinkertn@umich.edu Source('insts/macromem.cc') 526654Snate@binkert.org Source('insts/mem.cc') 535517Snate@binkert.org Source('insts/misc.cc') 548614Sgblack@eecs.umich.edu Source('insts/pred_inst.cc') 557674Snate@binkert.org Source('insts/static_inst.cc') 566143Snate@binkert.org Source('insts/vfp.cc') 576143Snate@binkert.org Source('isa.cc') 586143Snate@binkert.org Source('miscregs.cc') 598233Snate@binkert.org Source('predecoder.cc') 608233Snate@binkert.org Source('nativetrace.cc') 618233Snate@binkert.org Source('tlb.cc') 628233Snate@binkert.org Source('utility.cc') 638233Snate@binkert.org 648334Snate@binkert.org SimObject('ArmNativeTrace.py') 658334Snate@binkert.org SimObject('ArmTLB.py') 6610453SAndrew.Bardsley@arm.com 6710453SAndrew.Bardsley@arm.com TraceFlag('Arm') 688233Snate@binkert.org TraceFlag('TLBVerbose') 698233Snate@binkert.org TraceFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 708233Snate@binkert.org TraceFlag('Predecoder', "Instructions returned by the predecoder") 718233Snate@binkert.org if env['FULL_SYSTEM']: 728233Snate@binkert.org Source('interrupts.cc') 738233Snate@binkert.org Source('stacktrace.cc') 746143Snate@binkert.org Source('system.cc') 758233Snate@binkert.org Source('vtophys.cc') 768233Snate@binkert.org Source('linux/system.cc') 778233Snate@binkert.org Source('table_walker.cc') 786143Snate@binkert.org 796143Snate@binkert.org SimObject('ArmInterrupts.py') 806143Snate@binkert.org SimObject('ArmSystem.py') 816143Snate@binkert.org else: 828233Snate@binkert.org Source('process.cc') 838233Snate@binkert.org Source('linux/linux.cc') 848233Snate@binkert.org Source('linux/process.cc') 856143Snate@binkert.org 868233Snate@binkert.org # Add in files generated by the ISA description. 878233Snate@binkert.org isa_desc_files = env.ISADesc('isa/main.isa') 888233Snate@binkert.org # Only non-header files need to be compiled. 898233Snate@binkert.org for f in isa_desc_files: 906143Snate@binkert.org if not f.path.endswith('.hh'): 916143Snate@binkert.org Source(f) 926143Snate@binkert.org 934762Snate@binkert.org