SConscript revision 6168
110260SAndrew.Bardsley@arm.com# -*- mode:python -*- 210260SAndrew.Bardsley@arm.com 310352Sandreas.hansson@arm.com# Copyright (c) 2004-2005 The Regents of The University of Michigan 410585Sandreas.hansson@arm.com# All rights reserved. 510585Sandreas.hansson@arm.com# 610260SAndrew.Bardsley@arm.com# Redistribution and use in source and binary forms, with or without 710628Sandreas.hansson@arm.com# modification, are permitted provided that the following conditions are 810628Sandreas.hansson@arm.com# met: redistributions of source code must retain the above copyright 910628Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer; 1010628Sandreas.hansson@arm.com# redistributions in binary form must reproduce the above copyright 1110628Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer in the 1210260SAndrew.Bardsley@arm.com# documentation and/or other materials provided with the distribution; 1310352Sandreas.hansson@arm.com# neither the name of the copyright holders nor the names of its 1410352Sandreas.hansson@arm.com# contributors may be used to endorse or promote products derived from 1510260SAndrew.Bardsley@arm.com# this software without specific prior written permission. 1610585Sandreas.hansson@arm.com# 1710585Sandreas.hansson@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1810585Sandreas.hansson@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1910585Sandreas.hansson@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2010585Sandreas.hansson@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2110585Sandreas.hansson@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2210585Sandreas.hansson@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2310585Sandreas.hansson@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2410585Sandreas.hansson@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2510585Sandreas.hansson@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2610585Sandreas.hansson@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2710585Sandreas.hansson@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2810585Sandreas.hansson@arm.com# 2910352Sandreas.hansson@arm.com# Authors: Gabe Black 3010585Sandreas.hansson@arm.com# Steve Reinhardt 3110352Sandreas.hansson@arm.com 3210585Sandreas.hansson@arm.comImport('*') 3310260SAndrew.Bardsley@arm.com 3410260SAndrew.Bardsley@arm.comif env['TARGET_ISA'] == 'alpha': 3510585Sandreas.hansson@arm.com Source('ev5.cc') 3610260SAndrew.Bardsley@arm.com Source('faults.cc') 3710352Sandreas.hansson@arm.com Source('floatregfile.cc') 3810260SAndrew.Bardsley@arm.com Source('intregfile.cc') 3910260SAndrew.Bardsley@arm.com Source('ipr.cc') 4010260SAndrew.Bardsley@arm.com Source('miscregfile.cc') 4110585Sandreas.hansson@arm.com Source('pagetable.cc') 4210260SAndrew.Bardsley@arm.com Source('regfile.cc') 4310585Sandreas.hansson@arm.com Source('remote_gdb.cc') 4410585Sandreas.hansson@arm.com Source('tlb.cc') 4510260SAndrew.Bardsley@arm.com Source('utility.cc') 4610260SAndrew.Bardsley@arm.com 4710260SAndrew.Bardsley@arm.com SimObject('AlphaTLB.py') 4810352Sandreas.hansson@arm.com 4910260SAndrew.Bardsley@arm.com if env['FULL_SYSTEM']: 5010260SAndrew.Bardsley@arm.com SimObject('AlphaInterrupts.py') 5110260SAndrew.Bardsley@arm.com SimObject('AlphaSystem.py') 5210260SAndrew.Bardsley@arm.com 5310260SAndrew.Bardsley@arm.com Source('idle_event.cc') 5410260SAndrew.Bardsley@arm.com Source('interrupts.cc') 5510260SAndrew.Bardsley@arm.com Source('kernel_stats.cc') 5610260SAndrew.Bardsley@arm.com Source('osfpal.cc') 5710260SAndrew.Bardsley@arm.com Source('stacktrace.cc') 5810260SAndrew.Bardsley@arm.com Source('system.cc') 5910260SAndrew.Bardsley@arm.com Source('vtophys.cc') 6010260SAndrew.Bardsley@arm.com 6110260SAndrew.Bardsley@arm.com Source('freebsd/system.cc') 6210260SAndrew.Bardsley@arm.com Source('linux/system.cc') 6310260SAndrew.Bardsley@arm.com Source('tru64/system.cc') 6410260SAndrew.Bardsley@arm.com 6510260SAndrew.Bardsley@arm.com else: 6610260SAndrew.Bardsley@arm.com Source('process.cc') 6710260SAndrew.Bardsley@arm.com 6810260SAndrew.Bardsley@arm.com Source('linux/linux.cc') 6910260SAndrew.Bardsley@arm.com Source('linux/process.cc') 7010260SAndrew.Bardsley@arm.com 7110260SAndrew.Bardsley@arm.com Source('tru64/tru64.cc') 7210352Sandreas.hansson@arm.com Source('tru64/process.cc') 7310352Sandreas.hansson@arm.com 7410585Sandreas.hansson@arm.com # Add in files generated by the ISA description. 7510352Sandreas.hansson@arm.com isa_desc_files = env.ISADesc('isa/main.isa') 7610352Sandreas.hansson@arm.com # Only non-header files need to be compiled. 7710352Sandreas.hansson@arm.com for f in isa_desc_files: 7810352Sandreas.hansson@arm.com if not f.path.endswith('.hh'): 7910352Sandreas.hansson@arm.com Source(f) 8010352Sandreas.hansson@arm.com