SConscript revision 8745
17754SWilliam.Wang@arm.com# -*- mode:python -*- 27754SWilliam.Wang@arm.com 37754SWilliam.Wang@arm.com# Copyright (c) 2009 The University of Edinburgh 47754SWilliam.Wang@arm.com# All rights reserved. 57754SWilliam.Wang@arm.com# 67754SWilliam.Wang@arm.com# Redistribution and use in source and binary forms, with or without 77754SWilliam.Wang@arm.com# modification, are permitted provided that the following conditions are 87754SWilliam.Wang@arm.com# met: redistributions of source code must retain the above copyright 97754SWilliam.Wang@arm.com# notice, this list of conditions and the following disclaimer; 107754SWilliam.Wang@arm.com# redistributions in binary form must reproduce the above copyright 117754SWilliam.Wang@arm.com# notice, this list of conditions and the following disclaimer in the 127754SWilliam.Wang@arm.com# documentation and/or other materials provided with the distribution; 137754SWilliam.Wang@arm.com# neither the name of the copyright holders nor the names of its 147754SWilliam.Wang@arm.com# contributors may be used to endorse or promote products derived from 157754SWilliam.Wang@arm.com# this software without specific prior written permission. 167754SWilliam.Wang@arm.com# 177754SWilliam.Wang@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 187754SWilliam.Wang@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 197754SWilliam.Wang@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 207754SWilliam.Wang@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 217754SWilliam.Wang@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 227754SWilliam.Wang@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 237754SWilliam.Wang@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 247754SWilliam.Wang@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 257754SWilliam.Wang@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 267754SWilliam.Wang@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 277754SWilliam.Wang@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 287754SWilliam.Wang@arm.com# 297754SWilliam.Wang@arm.com# Authors: Timothy M. Jones 307754SWilliam.Wang@arm.com 317754SWilliam.Wang@arm.comImport('*') 327754SWilliam.Wang@arm.com 337754SWilliam.Wang@arm.comif env['TARGET_ISA'] == 'power': 347754SWilliam.Wang@arm.com# Workaround for bug in SCons version > 0.97d20071212 357754SWilliam.Wang@arm.com# Scons bug id: 2006 M5 Bug id: 308 367754SWilliam.Wang@arm.com Dir('isa/formats') 377754SWilliam.Wang@arm.com Source('insts/branch.cc') 387754SWilliam.Wang@arm.com Source('insts/mem.cc') 397754SWilliam.Wang@arm.com Source('insts/integer.cc') 407754SWilliam.Wang@arm.com Source('insts/floating.cc') 417754SWilliam.Wang@arm.com Source('insts/condition.cc') 427754SWilliam.Wang@arm.com Source('insts/static_inst.cc') 437754SWilliam.Wang@arm.com Source('interrupts.cc') 447754SWilliam.Wang@arm.com Source('pagetable.cc') 457754SWilliam.Wang@arm.com Source('tlb.cc') 467754SWilliam.Wang@arm.com Source('utility.cc') 477754SWilliam.Wang@arm.com 487754SWilliam.Wang@arm.com SimObject('PowerInterrupts.py') 497754SWilliam.Wang@arm.com SimObject('PowerTLB.py') 507754SWilliam.Wang@arm.com 517950SAli.Saidi@ARM.com DebugFlag('Power') 527950SAli.Saidi@ARM.com 539330Schander.sudanthi@arm.com if not env['FULL_SYSTEM']: 547950SAli.Saidi@ARM.com Source('process.cc') 557754SWilliam.Wang@arm.com Source('linux/linux.cc') 567754SWilliam.Wang@arm.com Source('linux/process.cc') 577950SAli.Saidi@ARM.com 587754SWilliam.Wang@arm.com # Add in files generated by the ISA description. 597754SWilliam.Wang@arm.com isa_desc_files = env.ISADesc('isa/main.isa') 607754SWilliam.Wang@arm.com 617754SWilliam.Wang@arm.com # Only non-header files need to be compiled. 627754SWilliam.Wang@arm.com for f in isa_desc_files: 637754SWilliam.Wang@arm.com if not f.path.endswith('.hh'): 647754SWilliam.Wang@arm.com Source(f) 657754SWilliam.Wang@arm.com 667950SAli.Saidi@ARM.com