SConscript revision 9057:f5ee56466b91
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
44955SN/AImport('*')
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('decoder.cc')
514382Sbinkertn@umich.edu    Source('faults.cc')
526654Snate@binkert.org    Source('insts/macromem.cc')
535517Snate@binkert.org    Source('insts/mem.cc')
547674Snate@binkert.org    Source('insts/misc.cc')
557674Snate@binkert.org    Source('insts/pred_inst.cc')
566143Snate@binkert.org    Source('insts/static_inst.cc')
576143Snate@binkert.org    Source('insts/vfp.cc')
586143Snate@binkert.org    Source('interrupts.cc')
598233Snate@binkert.org    Source('isa.cc')
608233Snate@binkert.org    Source('linux/linux.cc')
618233Snate@binkert.org    Source('linux/process.cc')
628233Snate@binkert.org    Source('linux/system.cc')
638233Snate@binkert.org    Source('miscregs.cc')
648233Snate@binkert.org    Source('nativetrace.cc')
658233Snate@binkert.org    Source('process.cc')
668233Snate@binkert.org    Source('remote_gdb.cc')
678233Snate@binkert.org    Source('stacktrace.cc')
688233Snate@binkert.org    Source('system.cc')
698233Snate@binkert.org    Source('table_walker.cc')
708233Snate@binkert.org    Source('tlb.cc')
718233Snate@binkert.org    Source('utility.cc')
726143Snate@binkert.org    Source('vtophys.cc')
738233Snate@binkert.org
748233Snate@binkert.org    SimObject('ArmInterrupts.py')
758233Snate@binkert.org    SimObject('ArmNativeTrace.py')
766143Snate@binkert.org    SimObject('ArmSystem.py')
776143Snate@binkert.org    SimObject('ArmTLB.py')
786143Snate@binkert.org
796143Snate@binkert.org    DebugFlag('Arm')
808233Snate@binkert.org    DebugFlag('Decoder', "Instructions returned by the predecoder")
818233Snate@binkert.org    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
828233Snate@binkert.org    DebugFlag('TLBVerbose')
836143Snate@binkert.org
848233Snate@binkert.org    # Add in files generated by the ISA description.
858233Snate@binkert.org    isa_desc_files = env.ISADesc('isa/main.isa')
868233Snate@binkert.org    # Only non-header files need to be compiled.
878233Snate@binkert.org    for f in isa_desc_files:
886143Snate@binkert.org        if not f.path.endswith('.hh'):
896143Snate@binkert.org            Source(f)
906143Snate@binkert.org
914762Snate@binkert.org