SConscript revision 6735:6437ad24a8a0
15703SN/A# -*- mode:python -*-
25703SN/A
35703SN/A# Copyright (c) 2007-2008 The Florida State University
45703SN/A# All rights reserved.
55703SN/A#
65703SN/A# Redistribution and use in source and binary forms, with or without
75703SN/A# modification, are permitted provided that the following conditions are
85703SN/A# met: redistributions of source code must retain the above copyright
95703SN/A# notice, this list of conditions and the following disclaimer;
105703SN/A# redistributions in binary form must reproduce the above copyright
115703SN/A# notice, this list of conditions and the following disclaimer in the
125703SN/A# documentation and/or other materials provided with the distribution;
135703SN/A# neither the name of the copyright holders nor the names of its
145703SN/A# contributors may be used to endorse or promote products derived from
155703SN/A# this software without specific prior written permission.
165703SN/A#
175703SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
185703SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
195703SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
205703SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
215703SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
225703SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
235703SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
245703SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
255703SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
265703SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
275703SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
285703SN/A#
295703SN/A# Authors: Stephen Hines
3011680SCurtis.Dunham@arm.com
315703SN/AImport('*')
325703SN/A
335703SN/Aif env['TARGET_ISA'] == 'arm':
345703SN/A# Workaround for bug in SCons version > 0.97d20071212
355703SN/A# Scons bug id: 2006 M5 Bug id: 308 
365703SN/A    Dir('isa/formats')
375703SN/A    Source('faults.cc')
385703SN/A    Source('insts/branch.cc')
395703SN/A    Source('insts/mem.cc')
405703SN/A    Source('insts/pred_inst.cc')
415703SN/A    Source('insts/static_inst.cc')
425703SN/A    Source('nativetrace.cc')
435703SN/A    Source('pagetable.cc')
445703SN/A    Source('tlb.cc')
455703SN/A    Source('vtophys.cc')
465703SN/A
475703SN/A    SimObject('ArmNativeTrace.py')
485703SN/A    SimObject('ArmTLB.py')
495703SN/A
505703SN/A    TraceFlag('Arm')
515703SN/A    TraceFlag('Faults', "Trace Exceptions, interrupts, svc/swi")
525703SN/A    if env['FULL_SYSTEM']:
535703SN/A        #Insert Full-System Files Here
545703SN/A        pass
555703SN/A    else:
565703SN/A        Source('process.cc')
575703SN/A        Source('linux/linux.cc')
585703SN/A        Source('linux/process.cc')
595703SN/A
605703SN/A    # Add in files generated by the ISA description.
615703SN/A    isa_desc_files = env.ISADesc('isa/main.isa')
625703SN/A    # Only non-header files need to be compiled.
635703SN/A    for f in isa_desc_files:
645778SN/A        if not f.path.endswith('.hh'):
655703SN/A            Source(f)
665703SN/A
675703SN/A