SConscript revision 6397
17019SBrad.Beckmann@amd.com# -*- mode:python -*-
27019SBrad.Beckmann@amd.com
37019SBrad.Beckmann@amd.com# Copyright (c) 2007-2008 The Florida State University
47019SBrad.Beckmann@amd.com# All rights reserved.
57019SBrad.Beckmann@amd.com#
67019SBrad.Beckmann@amd.com# Redistribution and use in source and binary forms, with or without
77019SBrad.Beckmann@amd.com# modification, are permitted provided that the following conditions are
87019SBrad.Beckmann@amd.com# met: redistributions of source code must retain the above copyright
97019SBrad.Beckmann@amd.com# notice, this list of conditions and the following disclaimer;
107019SBrad.Beckmann@amd.com# redistributions in binary form must reproduce the above copyright
117019SBrad.Beckmann@amd.com# notice, this list of conditions and the following disclaimer in the
127019SBrad.Beckmann@amd.com# documentation and/or other materials provided with the distribution;
137019SBrad.Beckmann@amd.com# neither the name of the copyright holders nor the names of its
147019SBrad.Beckmann@amd.com# contributors may be used to endorse or promote products derived from
157019SBrad.Beckmann@amd.com# this software without specific prior written permission.
167019SBrad.Beckmann@amd.com#
177019SBrad.Beckmann@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
187019SBrad.Beckmann@amd.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
197019SBrad.Beckmann@amd.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
207019SBrad.Beckmann@amd.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
217019SBrad.Beckmann@amd.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
227019SBrad.Beckmann@amd.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
237019SBrad.Beckmann@amd.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
247019SBrad.Beckmann@amd.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
257019SBrad.Beckmann@amd.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
267019SBrad.Beckmann@amd.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
277019SBrad.Beckmann@amd.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
287019SBrad.Beckmann@amd.com#
297019SBrad.Beckmann@amd.com# Authors: Stephen Hines
306876Ssteve.reinhardt@amd.com
319465Snilay@cs.wisc.eduImport('*')
326876Ssteve.reinhardt@amd.com
339465Snilay@cs.wisc.eduif env['TARGET_ISA'] == 'arm':
346876Ssteve.reinhardt@amd.com# Workaround for bug in SCons version > 0.97d20071212
356876Ssteve.reinhardt@amd.com# Scons bug id: 2006 M5 Bug id: 308 
369338SAndreas.Sandberg@arm.com    Dir('isa/formats')
376876Ssteve.reinhardt@amd.com    Source('faults.cc')
386876Ssteve.reinhardt@amd.com    Source('insts/branch.cc')
3910005Snilay@cs.wisc.edu    Source('insts/mem.cc')
4010005Snilay@cs.wisc.edu    Source('insts/pred_inst.cc')
416876Ssteve.reinhardt@amd.com    Source('insts/static_inst.cc')
426876Ssteve.reinhardt@amd.com    Source('nativetrace.cc')
436876Ssteve.reinhardt@amd.com    Source('pagetable.cc')
449499Snilay@cs.wisc.edu    Source('tlb.cc')
456876Ssteve.reinhardt@amd.com    Source('vtophys.cc')
469595Snilay@cs.wisc.edu
479595Snilay@cs.wisc.edu    SimObject('ArmNativeTrace.py')
489595Snilay@cs.wisc.edu    SimObject('ArmTLB.py')
49
50    TraceFlag('Arm')
51
52    if env['FULL_SYSTEM']:
53        #Insert Full-System Files Here
54        pass
55    else:
56        Source('process.cc')
57        Source('linux/linux.cc')
58        Source('linux/process.cc')
59
60    # Add in files generated by the ISA description.
61    isa_desc_files = env.ISADesc('isa/main.isa')
62    # Only non-header files need to be compiled.
63    for f in isa_desc_files:
64        if not f.path.endswith('.hh'):
65            Source(f)
66
67