SConscript revision 10037
16019Shines@cs.fsu.edu# -*- mode:python -*-
26019Shines@cs.fsu.edu
36019Shines@cs.fsu.edu# Copyright (c) 2009, 2012-2013 ARM Limited
46019Shines@cs.fsu.edu# All rights reserved.
56019Shines@cs.fsu.edu#
66019Shines@cs.fsu.edu# The license below extends only to copyright in the software and shall
76019Shines@cs.fsu.edu# not be construed as granting a license to any other intellectual
86019Shines@cs.fsu.edu# property including but not limited to intellectual property relating
96019Shines@cs.fsu.edu# to a hardware implementation of the functionality of the software
106019Shines@cs.fsu.edu# licensed hereunder.  You may use the software subject to the license
116019Shines@cs.fsu.edu# terms below provided that you ensure that this notice is replicated
126019Shines@cs.fsu.edu# unmodified and in its entirety in all distributions of the software,
136019Shines@cs.fsu.edu# modified or unmodified, in source code or in binary form.
146019Shines@cs.fsu.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
387752SWilliam.Wang@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
397752SWilliam.Wang@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
407752SWilliam.Wang@arm.com#
417752SWilliam.Wang@arm.com# Authors: Stephen Hines
426019Shines@cs.fsu.edu#          Ali Saidi
436019Shines@cs.fsu.edu
447752SWilliam.Wang@arm.comImport('*')
457752SWilliam.Wang@arm.com
467752SWilliam.Wang@arm.comif env['TARGET_ISA'] == 'arm':
477752SWilliam.Wang@arm.com# Workaround for bug in SCons version > 0.97d20071212
487752SWilliam.Wang@arm.com# Scons bug id: 2006 M5 Bug id: 308 
497752SWilliam.Wang@arm.com    Dir('isa/formats')
506019Shines@cs.fsu.edu    Source('decoder.cc')
517752SWilliam.Wang@arm.com    Source('faults.cc')
527752SWilliam.Wang@arm.com    Source('insts/branch64.cc')
536019Shines@cs.fsu.edu    Source('insts/data64.cc')
547752SWilliam.Wang@arm.com    Source('insts/macromem.cc')
557752SWilliam.Wang@arm.com    Source('insts/mem.cc')
567752SWilliam.Wang@arm.com    Source('insts/mem64.cc')
576019Shines@cs.fsu.edu    Source('insts/misc.cc')
587752SWilliam.Wang@arm.com    Source('insts/misc64.cc')
597752SWilliam.Wang@arm.com    Source('insts/pred_inst.cc')
607752SWilliam.Wang@arm.com    Source('insts/static_inst.cc')
616019Shines@cs.fsu.edu    Source('insts/vfp.cc')
627752SWilliam.Wang@arm.com    Source('insts/fplib.cc')
637752SWilliam.Wang@arm.com    Source('interrupts.cc')
646019Shines@cs.fsu.edu    Source('isa.cc')
657752SWilliam.Wang@arm.com    Source('linux/linux.cc')
667752SWilliam.Wang@arm.com    Source('linux/process.cc')
676019Shines@cs.fsu.edu    Source('linux/system.cc')
687752SWilliam.Wang@arm.com    Source('miscregs.cc')
697752SWilliam.Wang@arm.com    Source('nativetrace.cc')
707752SWilliam.Wang@arm.com    Source('process.cc')
717752SWilliam.Wang@arm.com    Source('remote_gdb.cc')
726019Shines@cs.fsu.edu    Source('stacktrace.cc')
736019Shines@cs.fsu.edu    Source('system.cc')
74    Source('table_walker.cc')
75    Source('stage2_mmu.cc')
76    Source('stage2_lookup.cc')
77    Source('tlb.cc')
78    Source('utility.cc')
79    Source('vtophys.cc')
80
81    SimObject('ArmInterrupts.py')
82    SimObject('ArmISA.py')
83    SimObject('ArmNativeTrace.py')
84    SimObject('ArmSystem.py')
85    SimObject('ArmTLB.py')
86
87    DebugFlag('Arm')
88    DebugFlag('Decoder', "Instructions returned by the predecoder")
89    DebugFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
90    DebugFlag('TLBVerbose')
91
92    # Add in files generated by the ISA description.
93    isa_desc_files = env.ISADesc('isa/main.isa')
94    # Only non-header files need to be compiled.
95    for f in isa_desc_files:
96        if not f.path.endswith('.hh'):
97            Source(f)
98
99