SConscript revision 4661
12139SN/A# -*- mode:python -*- 22139SN/A 32139SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan 42139SN/A# All rights reserved. 52139SN/A# 62139SN/A# Redistribution and use in source and binary forms, with or without 72139SN/A# modification, are permitted provided that the following conditions are 82139SN/A# met: redistributions of source code must retain the above copyright 92139SN/A# notice, this list of conditions and the following disclaimer; 102139SN/A# redistributions in binary form must reproduce the above copyright 112139SN/A# notice, this list of conditions and the following disclaimer in the 122139SN/A# documentation and/or other materials provided with the distribution; 132139SN/A# neither the name of the copyright holders nor the names of its 142139SN/A# contributors may be used to endorse or promote products derived from 152139SN/A# this software without specific prior written permission. 162139SN/A# 172139SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192139SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202139SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212139SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222139SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232139SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242139SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252139SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262139SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272139SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# Authors: Gabe Black 302139SN/A 312718Sstever@eecs.umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company 322139SN/A# All rights reserved. 332139SN/A# 342139SN/A# Redistribution and use of this software in source and binary forms, 352139SN/A# with or without modification, are permitted provided that the 362152SN/A# following conditions are met: 372152SN/A# 382152SN/A# The software must be used only for Non-Commercial Use which means any 392152SN/A# use which is NOT directed to receiving any direct monetary 402139SN/A# compensation for, or commercial advantage from such use. Illustrative 412139SN/A# examples of non-commercial use are academic research, personal study, 422139SN/A# teaching, education and corporate research & development. 432139SN/A# Illustrative examples of commercial use are distributing products for 442139SN/A# commercial advantage and providing services using the software for 452152SN/A# commercial advantage. 462152SN/A# 472139SN/A# If you wish to use this software or functionality therein that may be 482139SN/A# covered by patents for commercial use, please contact: 492139SN/A# Director of Intellectual Property Licensing 502439SN/A# Office of Strategy and Technology 512439SN/A# Hewlett-Packard Company 522439SN/A# 1501 Page Mill Road 532139SN/A# Palo Alto, California 94304 542439SN/A# 552460SN/A# Redistributions of source code must retain the above copyright notice, 562439SN/A# this list of conditions and the following disclaimer. Redistributions 572171SN/A# in binary form must reproduce the above copyright notice, this list of 582439SN/A# conditions and the following disclaimer in the documentation and/or 592439SN/A# other materials provided with the distribution. Neither the name of 602170SN/A# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 612139SN/A# contributors may be used to endorse or promote products derived from 622139SN/A# this software without specific prior written permission. No right of 632139SN/A# sublicense is granted herewith. Derivatives of the software and 642139SN/A# output created using the software may be prepared, but only for 652139SN/A# Non-Commercial Uses. Derivatives of the software may be shared with 662139SN/A# others provided: (i) the others agree to abide by the list of 672139SN/A# conditions herein which includes the Non-Commercial Use restrictions; 682139SN/A# and (ii) such Derivatives of the software include the above copyright 692139SN/A# notice to acknowledge the contribution from this software where 702139SN/A# applicable, this list of conditions and the disclaimer below. 712139SN/A# 722139SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 732139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 742139SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 752139SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 762139SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 772139SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 782139SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 792139SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 802139SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 812139SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 822139SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 832139SN/A# 842139SN/A# Authors: Gabe Black 852178SN/A 862139SN/AImport('*') 872139SN/Aif env['TARGET_ISA'] == 'x86': 882139SN/A Source('emulenv.cc') 892139SN/A Source('floatregfile.cc') 902139SN/A Source('intregfile.cc') 912139SN/A Source('miscregfile.cc') 922139SN/A Source('predecoder.cc') 932152SN/A Source('predecoder_tables.cc') 942152SN/A Source('regfile.cc') 952152SN/A Source('remote_gdb.cc') 962152SN/A 972152SN/A if env['FULL_SYSTEM']: 982152SN/A # Full-system sources 992152SN/A pass 1002152SN/A else: 1012152SN/A Source('process.cc') 1022152SN/A 1032152SN/A Source('linux/linux.cc') 1042152SN/A Source('linux/process.cc') 1052504SN/A Source('linux/syscalls.cc') 1062504SN/A 1072504SN/A # Add in files generated by the ISA description. 1082504SN/A isa_desc_files = env.ISADesc('isa/main.isa') 1092152SN/A # Only non-header files need to be compiled. 1102504SN/A for f in isa_desc_files: 1112152SN/A if not f.path.endswith('.hh'): 1122152SN/A Source(f) 1132152SN/A