SConscript revision 7585
16019Shines@cs.fsu.edu# -*- mode:python -*- 26019Shines@cs.fsu.edu 37100Sgblack@eecs.umich.edu# Copyright (c) 2009 ARM Limited 47100Sgblack@eecs.umich.edu# All rights reserved. 57100Sgblack@eecs.umich.edu# 67100Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall 77100Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual 87100Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating 97100Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software 107100Sgblack@eecs.umich.edu# licensed hereunder. You may use the software subject to the license 117100Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated 127100Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software, 137100Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form. 147100Sgblack@eecs.umich.edu# 156019Shines@cs.fsu.edu# Copyright (c) 2007-2008 The Florida State University 166019Shines@cs.fsu.edu# All rights reserved. 176019Shines@cs.fsu.edu# 186019Shines@cs.fsu.edu# Redistribution and use in source and binary forms, with or without 196019Shines@cs.fsu.edu# modification, are permitted provided that the following conditions are 206019Shines@cs.fsu.edu# met: redistributions of source code must retain the above copyright 216019Shines@cs.fsu.edu# notice, this list of conditions and the following disclaimer; 226019Shines@cs.fsu.edu# redistributions in binary form must reproduce the above copyright 236019Shines@cs.fsu.edu# notice, this list of conditions and the following disclaimer in the 246019Shines@cs.fsu.edu# documentation and/or other materials provided with the distribution; 256019Shines@cs.fsu.edu# neither the name of the copyright holders nor the names of its 266019Shines@cs.fsu.edu# contributors may be used to endorse or promote products derived from 276019Shines@cs.fsu.edu# this software without specific prior written permission. 286019Shines@cs.fsu.edu# 296019Shines@cs.fsu.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 306019Shines@cs.fsu.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 316019Shines@cs.fsu.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 326019Shines@cs.fsu.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 336019Shines@cs.fsu.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 346019Shines@cs.fsu.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 356019Shines@cs.fsu.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 366019Shines@cs.fsu.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 376019Shines@cs.fsu.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 386019Shines@cs.fsu.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 396019Shines@cs.fsu.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 406019Shines@cs.fsu.edu# 416019Shines@cs.fsu.edu# Authors: Stephen Hines 426757SAli.Saidi@ARM.com# Ali Saidi 436019Shines@cs.fsu.edu 446019Shines@cs.fsu.eduImport('*') 456019Shines@cs.fsu.edu 466019Shines@cs.fsu.eduif env['TARGET_ISA'] == 'arm': 476019Shines@cs.fsu.edu# Workaround for bug in SCons version > 0.97d20071212 486019Shines@cs.fsu.edu# Scons bug id: 2006 M5 Bug id: 308 496019Shines@cs.fsu.edu Dir('isa/formats') 506019Shines@cs.fsu.edu Source('faults.cc') 517170Sgblack@eecs.umich.edu Source('insts/macromem.cc') 526253Sgblack@eecs.umich.edu Source('insts/mem.cc') 537202Sgblack@eecs.umich.edu Source('insts/misc.cc') 546253Sgblack@eecs.umich.edu Source('insts/pred_inst.cc') 556253Sgblack@eecs.umich.edu Source('insts/static_inst.cc') 567396Sgblack@eecs.umich.edu Source('insts/vfp.cc') 577405SAli.Saidi@ARM.com Source('isa.cc') 587259Sgblack@eecs.umich.edu Source('miscregs.cc') 597423Sgblack@eecs.umich.edu Source('predecoder.cc') 606397Sgblack@eecs.umich.edu Source('nativetrace.cc') 616019Shines@cs.fsu.edu Source('tlb.cc') 626019Shines@cs.fsu.edu Source('vtophys.cc') 636757SAli.Saidi@ARM.com Source('utility.cc') 646019Shines@cs.fsu.edu 656397Sgblack@eecs.umich.edu SimObject('ArmNativeTrace.py') 666019Shines@cs.fsu.edu SimObject('ArmTLB.py') 676397Sgblack@eecs.umich.edu 686019Shines@cs.fsu.edu TraceFlag('Arm') 697404SAli.Saidi@ARM.com TraceFlag('TLBVerbose') 706735Sgblack@eecs.umich.edu TraceFlag('Faults', "Trace Exceptions, interrupts, svc/swi") 717100Sgblack@eecs.umich.edu TraceFlag('Predecoder', "Instructions returned by the predecoder") 726019Shines@cs.fsu.edu if env['FULL_SYSTEM']: 736757SAli.Saidi@ARM.com Source('interrupts.cc') 746757SAli.Saidi@ARM.com Source('stacktrace.cc') 756757SAli.Saidi@ARM.com Source('system.cc') 767585SAli.Saidi@arm.com Source('linux/system.cc') 777404SAli.Saidi@ARM.com Source('table_walker.cc') 786757SAli.Saidi@ARM.com 796757SAli.Saidi@ARM.com SimObject('ArmInterrupts.py') 806757SAli.Saidi@ARM.com SimObject('ArmSystem.py') 816019Shines@cs.fsu.edu else: 826019Shines@cs.fsu.edu Source('process.cc') 836019Shines@cs.fsu.edu Source('linux/linux.cc') 846019Shines@cs.fsu.edu Source('linux/process.cc') 856019Shines@cs.fsu.edu 866019Shines@cs.fsu.edu # Add in files generated by the ISA description. 876019Shines@cs.fsu.edu isa_desc_files = env.ISADesc('isa/main.isa') 886019Shines@cs.fsu.edu # Only non-header files need to be compiled. 896019Shines@cs.fsu.edu for f in isa_desc_files: 906019Shines@cs.fsu.edu if not f.path.endswith('.hh'): 916019Shines@cs.fsu.edu Source(f) 926019Shines@cs.fsu.edu 93