SConscript revision 9022:bb25e7646c41
113207Sgabeblack@google.com# -*- mode:python -*- 213207Sgabeblack@google.com 313207Sgabeblack@google.com# Copyright (c) 2009 The University of Edinburgh 413207Sgabeblack@google.com# All rights reserved. 513207Sgabeblack@google.com# 613207Sgabeblack@google.com# Redistribution and use in source and binary forms, with or without 713207Sgabeblack@google.com# modification, are permitted provided that the following conditions are 813207Sgabeblack@google.com# met: redistributions of source code must retain the above copyright 913207Sgabeblack@google.com# notice, this list of conditions and the following disclaimer; 1013207Sgabeblack@google.com# redistributions in binary form must reproduce the above copyright 1113207Sgabeblack@google.com# notice, this list of conditions and the following disclaimer in the 1213207Sgabeblack@google.com# documentation and/or other materials provided with the distribution; 1313207Sgabeblack@google.com# neither the name of the copyright holders nor the names of its 1413207Sgabeblack@google.com# contributors may be used to endorse or promote products derived from 1513207Sgabeblack@google.com# this software without specific prior written permission. 1613207Sgabeblack@google.com# 1713207Sgabeblack@google.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1813207Sgabeblack@google.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1913207Sgabeblack@google.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2013207Sgabeblack@google.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2113207Sgabeblack@google.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2213207Sgabeblack@google.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2313207Sgabeblack@google.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2413207Sgabeblack@google.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2513207Sgabeblack@google.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2613207Sgabeblack@google.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2713207Sgabeblack@google.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2813207Sgabeblack@google.com# 2913207Sgabeblack@google.com# Authors: Timothy M. Jones 3013207Sgabeblack@google.com 3113207Sgabeblack@google.comImport('*') 3213207Sgabeblack@google.com 3313207Sgabeblack@google.comif env['TARGET_ISA'] == 'power': 3413273Sgabeblack@google.com# Workaround for bug in SCons version > 0.97d20071212 3513207Sgabeblack@google.com# Scons bug id: 2006 M5 Bug id: 308 3613207Sgabeblack@google.com Dir('isa/formats') 3713239Sgabeblack@google.com Source('decoder.cc') 3813207Sgabeblack@google.com Source('insts/branch.cc') 3913207Sgabeblack@google.com Source('insts/mem.cc') 4013207Sgabeblack@google.com Source('insts/integer.cc') 4113207Sgabeblack@google.com Source('insts/floating.cc') 4213207Sgabeblack@google.com Source('insts/condition.cc') 4313207Sgabeblack@google.com Source('insts/static_inst.cc') 4413207Sgabeblack@google.com Source('interrupts.cc') 4513207Sgabeblack@google.com Source('linux/linux.cc') 4613288Sgabeblack@google.com Source('linux/process.cc') 4713207Sgabeblack@google.com Source('pagetable.cc') 4813207Sgabeblack@google.com Source('process.cc') 4913207Sgabeblack@google.com Source('stacktrace.cc') 5013207Sgabeblack@google.com Source('tlb.cc') 5113207Sgabeblack@google.com Source('utility.cc') 5213207Sgabeblack@google.com Source('vtophys.cc') 5313207Sgabeblack@google.com 5413207Sgabeblack@google.com SimObject('PowerInterrupts.py') 5513207Sgabeblack@google.com SimObject('PowerTLB.py') 5613207Sgabeblack@google.com 5713207Sgabeblack@google.com DebugFlag('Power') 5813207Sgabeblack@google.com 5913207Sgabeblack@google.com # Add in files generated by the ISA description. 6013207Sgabeblack@google.com isa_desc_files = env.ISADesc('isa/main.isa') 6113273Sgabeblack@google.com 6213273Sgabeblack@google.com # Only non-header files need to be compiled. 6313207Sgabeblack@google.com for f in isa_desc_files: 6413207Sgabeblack@google.com if not f.path.endswith('.hh'): 6513288Sgabeblack@google.com Source(f) 6613207Sgabeblack@google.com 6713207Sgabeblack@google.com