SConscript revision 9384:877293183bdf
110260SAndrew.Bardsley@arm.com# -*- mode:python -*-
210260SAndrew.Bardsley@arm.com
310260SAndrew.Bardsley@arm.com# Copyright (c) 2004-2005 The Regents of The University of Michigan
410260SAndrew.Bardsley@arm.com# All rights reserved.
510260SAndrew.Bardsley@arm.com#
610260SAndrew.Bardsley@arm.com# Redistribution and use in source and binary forms, with or without
710260SAndrew.Bardsley@arm.com# modification, are permitted provided that the following conditions are
810260SAndrew.Bardsley@arm.com# met: redistributions of source code must retain the above copyright
910260SAndrew.Bardsley@arm.com# notice, this list of conditions and the following disclaimer;
1010260SAndrew.Bardsley@arm.com# redistributions in binary form must reproduce the above copyright
1110260SAndrew.Bardsley@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;
1310260SAndrew.Bardsley@arm.com# neither the name of the copyright holders nor the names of its
1410260SAndrew.Bardsley@arm.com# contributors may be used to endorse or promote products derived from
1510260SAndrew.Bardsley@arm.com# this software without specific prior written permission.
1610260SAndrew.Bardsley@arm.com#
1710260SAndrew.Bardsley@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1810260SAndrew.Bardsley@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1910260SAndrew.Bardsley@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2010260SAndrew.Bardsley@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2110260SAndrew.Bardsley@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2210260SAndrew.Bardsley@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2310260SAndrew.Bardsley@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2410260SAndrew.Bardsley@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2510260SAndrew.Bardsley@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2610260SAndrew.Bardsley@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2710260SAndrew.Bardsley@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2810260SAndrew.Bardsley@arm.com#
2910260SAndrew.Bardsley@arm.com# Authors: Gabe Black
3010260SAndrew.Bardsley@arm.com#          Steve Reinhardt
3110260SAndrew.Bardsley@arm.com
3210260SAndrew.Bardsley@arm.comImport('*')
3310260SAndrew.Bardsley@arm.com
3410260SAndrew.Bardsley@arm.comif env['TARGET_ISA'] == 'alpha':
3510260SAndrew.Bardsley@arm.com    Source('decoder.cc')
3610260SAndrew.Bardsley@arm.com    Source('ev5.cc')
3710260SAndrew.Bardsley@arm.com    Source('faults.cc')
3810260SAndrew.Bardsley@arm.com    Source('freebsd/system.cc')
3910260SAndrew.Bardsley@arm.com    Source('idle_event.cc')
4010260SAndrew.Bardsley@arm.com    Source('interrupts.cc')
4110260SAndrew.Bardsley@arm.com    Source('ipr.cc')
4211837Swendy.elsasser@arm.com    Source('isa.cc')
4310260SAndrew.Bardsley@arm.com    Source('kernel_stats.cc')
44    Source('linux/linux.cc')
45    Source('linux/process.cc')
46    Source('linux/system.cc')
47    Source('osfpal.cc')
48    Source('pagetable.cc')
49    Source('process.cc')
50    Source('regredir.cc')
51    Source('remote_gdb.cc')
52    Source('stacktrace.cc')
53    Source('system.cc')
54    Source('tlb.cc')
55    Source('tru64/process.cc')
56    Source('tru64/system.cc')
57    Source('tru64/tru64.cc')
58    Source('utility.cc')
59    Source('vtophys.cc')
60
61    SimObject('AlphaInterrupts.py')
62    SimObject('AlphaISA.py')
63    SimObject('AlphaSystem.py')
64    SimObject('AlphaTLB.py')
65
66
67    # Add in files generated by the ISA description.
68    isa_desc_files = env.ISADesc('isa/main.isa')
69    # Only non-header files need to be compiled.
70    for f in isa_desc_files:
71        if not f.path.endswith('.hh'):
72            Source(f)
73