SConscript revision 4486
12929Sktlim@umich.edu# -*- mode:python -*-
22929Sktlim@umich.edu
32932Sktlim@umich.edu# Copyright (c) 2005-2006 The Regents of The University of Michigan
42929Sktlim@umich.edu# All rights reserved.
52929Sktlim@umich.edu#
62929Sktlim@umich.edu# Redistribution and use in source and binary forms, with or without
72929Sktlim@umich.edu# modification, are permitted provided that the following conditions are
82929Sktlim@umich.edu# met: redistributions of source code must retain the above copyright
92929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer;
102929Sktlim@umich.edu# redistributions in binary form must reproduce the above copyright
112929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer in the
122929Sktlim@umich.edu# documentation and/or other materials provided with the distribution;
132929Sktlim@umich.edu# neither the name of the copyright holders nor the names of its
142929Sktlim@umich.edu# contributors may be used to endorse or promote products derived from
152929Sktlim@umich.edu# this software without specific prior written permission.
162929Sktlim@umich.edu#
172929Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182929Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192929Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202929Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242929Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252929Sktlim@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262929Sktlim@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272929Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282932Sktlim@umich.edu#
292932Sktlim@umich.edu# Authors: Gabe Black
302932Sktlim@umich.edu
312929Sktlim@umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company
322929Sktlim@umich.edu# All rights reserved.
332929Sktlim@umich.edu#
342929Sktlim@umich.edu# Redistribution and use of this software in source and binary forms,
352929Sktlim@umich.edu# with or without modification, are permitted provided that the
362929Sktlim@umich.edu# following conditions are met:
372929Sktlim@umich.edu#
382929Sktlim@umich.edu# The software must be used only for Non-Commercial Use which means any
392929Sktlim@umich.edu# use which is NOT directed to receiving any direct monetary
402929Sktlim@umich.edu# compensation for, or commercial advantage from such use.  Illustrative
412929Sktlim@umich.edu# examples of non-commercial use are academic research, personal study,
422929Sktlim@umich.edu# teaching, education and corporate research & development.
432929Sktlim@umich.edu# Illustrative examples of commercial use are distributing products for
442929Sktlim@umich.edu# commercial advantage and providing services using the software for
452929Sktlim@umich.edu# commercial advantage.
462929Sktlim@umich.edu#
472929Sktlim@umich.edu# If you wish to use this software or functionality therein that may be
482929Sktlim@umich.edu# covered by patents for commercial use, please contact:
492929Sktlim@umich.edu#     Director of Intellectual Property Licensing
502929Sktlim@umich.edu#     Office of Strategy and Technology
512929Sktlim@umich.edu#     Hewlett-Packard Company
522929Sktlim@umich.edu#     1501 Page Mill Road
532929Sktlim@umich.edu#     Palo Alto, California  94304
542929Sktlim@umich.edu#
552929Sktlim@umich.edu# Redistributions of source code must retain the above copyright notice,
562929Sktlim@umich.edu# this list of conditions and the following disclaimer.  Redistributions
572929Sktlim@umich.edu# in binary form must reproduce the above copyright notice, this list of
582929Sktlim@umich.edu# conditions and the following disclaimer in the documentation and/or
592929Sktlim@umich.edu# other materials provided with the distribution.  Neither the name of
602929Sktlim@umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
612929Sktlim@umich.edu# contributors may be used to endorse or promote products derived from
622929Sktlim@umich.edu# this software without specific prior written permission.  No right of
632929Sktlim@umich.edu# sublicense is granted herewith.  Derivatives of the software and
643020Sstever@eecs.umich.edu# output created using the software may be prepared, but only for
653020Sstever@eecs.umich.edu# Non-Commercial Uses.  Derivatives of the software may be shared with
663020Sstever@eecs.umich.edu# others provided: (i) the others agree to abide by the list of
672929Sktlim@umich.edu# conditions herein which includes the Non-Commercial Use restrictions;
682929Sktlim@umich.edu# and (ii) such Derivatives of the software include the above copyright
693021Sstever@eecs.umich.edu# notice to acknowledge the contribution from this software where
702929Sktlim@umich.edu# applicable, this list of conditions and the disclaimer below.
712929Sktlim@umich.edu#
722929Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
732929Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
742929Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
752929Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
762929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
772929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
782929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
792929Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
802929Sktlim@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
812929Sktlim@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
822929Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
832929Sktlim@umich.edu#
842929Sktlim@umich.edu# Authors: Gabe Black
852929Sktlim@umich.edu
862929Sktlim@umich.eduImport('*')
872929Sktlim@umich.eduif env['TARGET_ISA'] == 'x86':
882929Sktlim@umich.edu    Source('floatregfile.cc')
892929Sktlim@umich.edu    Source('intregfile.cc')
902929Sktlim@umich.edu    Source('miscregfile.cc')
912929Sktlim@umich.edu    Source('predecoder.cc')
922929Sktlim@umich.edu    Source('predecoder_tables.cc')
932929Sktlim@umich.edu    Source('regfile.cc')
942929Sktlim@umich.edu    Source('remote_gdb.cc')
952929Sktlim@umich.edu
962929Sktlim@umich.edu    if env['FULL_SYSTEM']:
972929Sktlim@umich.edu        # Full-system sources
982929Sktlim@umich.edu        pass
992929Sktlim@umich.edu    else:
1002929Sktlim@umich.edu        Source('process.cc')
1012929Sktlim@umich.edu
1022929Sktlim@umich.edu        Source('linux/linux.cc')
1032929Sktlim@umich.edu        Source('linux/process.cc')
1042929Sktlim@umich.edu        Source('linux/syscalls.cc')
1054937Sstever@gmail.com
1064937Sstever@gmail.com    # Add in files generated by the ISA description.
1074937Sstever@gmail.com    isa_desc_files = env.ISADesc('isa/main.isa')
1084937Sstever@gmail.com    # Only non-header files need to be compiled.
1094937Sstever@gmail.com    for f in isa_desc_files:
1104937Sstever@gmail.com        if not f.path.endswith('.hh'):
1114937Sstever@gmail.com            Source(f)
1124937Sstever@gmail.com