SConscript revision 6246:5744fafb5072
17732SAli.Saidi@ARM.com# -*- mode:python -*-
210037SARM gem5 Developers
37732SAli.Saidi@ARM.com# Copyright (c) 2007-2008 The Florida State University
47732SAli.Saidi@ARM.com# All rights reserved.
57732SAli.Saidi@ARM.com#
67732SAli.Saidi@ARM.com# Redistribution and use in source and binary forms, with or without
77732SAli.Saidi@ARM.com# modification, are permitted provided that the following conditions are
87732SAli.Saidi@ARM.com# met: redistributions of source code must retain the above copyright
97732SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer;
107732SAli.Saidi@ARM.com# redistributions in binary form must reproduce the above copyright
117732SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer in the
127732SAli.Saidi@ARM.com# documentation and/or other materials provided with the distribution;
137732SAli.Saidi@ARM.com# neither the name of the copyright holders nor the names of its
147732SAli.Saidi@ARM.com# contributors may be used to endorse or promote products derived from
157732SAli.Saidi@ARM.com# this software without specific prior written permission.
167732SAli.Saidi@ARM.com#
177732SAli.Saidi@ARM.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
187732SAli.Saidi@ARM.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
197732SAli.Saidi@ARM.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
207732SAli.Saidi@ARM.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
217732SAli.Saidi@ARM.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
227732SAli.Saidi@ARM.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
237732SAli.Saidi@ARM.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
247732SAli.Saidi@ARM.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
257732SAli.Saidi@ARM.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
267732SAli.Saidi@ARM.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
277732SAli.Saidi@ARM.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
287732SAli.Saidi@ARM.com#
297732SAli.Saidi@ARM.com# Authors: Stephen Hines
307732SAli.Saidi@ARM.com
317732SAli.Saidi@ARM.comImport('*')
327732SAli.Saidi@ARM.com
337732SAli.Saidi@ARM.comif env['TARGET_ISA'] == 'arm':
347732SAli.Saidi@ARM.com# Workaround for bug in SCons version > 0.97d20071212
357732SAli.Saidi@ARM.com# Scons bug id: 2006 M5 Bug id: 308 
367732SAli.Saidi@ARM.com    Dir('isa/formats')
377732SAli.Saidi@ARM.com    Source('faults.cc')
387732SAli.Saidi@ARM.com    Source('pagetable.cc')
397732SAli.Saidi@ARM.com    Source('regfile/regfile.cc')
407732SAli.Saidi@ARM.com    Source('tlb.cc')
419554Sandreas.hansson@arm.com    Source('vtophys.cc')
429554Sandreas.hansson@arm.com
439554Sandreas.hansson@arm.com    SimObject('ArmTLB.py')
448204SAli.Saidi@ARM.com    TraceFlag('Arm')
458204SAli.Saidi@ARM.com
468204SAli.Saidi@ARM.com    if env['FULL_SYSTEM']:
478204SAli.Saidi@ARM.com        #Insert Full-System Files Here
488204SAli.Saidi@ARM.com        pass
498204SAli.Saidi@ARM.com    else:
508204SAli.Saidi@ARM.com        Source('process.cc')
518204SAli.Saidi@ARM.com        Source('linux/linux.cc')
528204SAli.Saidi@ARM.com        Source('linux/process.cc')
538204SAli.Saidi@ARM.com
548204SAli.Saidi@ARM.com    # Add in files generated by the ISA description.
558204SAli.Saidi@ARM.com    isa_desc_files = env.ISADesc('isa/main.isa')
568204SAli.Saidi@ARM.com    # Only non-header files need to be compiled.
577732SAli.Saidi@ARM.com    for f in isa_desc_files:
587732SAli.Saidi@ARM.com        if not f.path.endswith('.hh'):
597732SAli.Saidi@ARM.com            Source(f)
607732SAli.Saidi@ARM.com
6110037SARM gem5 Developers