SConscript revision 4202
1955SN/A# -*- mode:python -*-
2955SN/A
31762SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan
4955SN/A# All rights reserved.
5955SN/A#
6955SN/A# Redistribution and use in source and binary forms, with or without
7955SN/A# modification, are permitted provided that the following conditions are
8955SN/A# met: redistributions of source code must retain the above copyright
9955SN/A# notice, this list of conditions and the following disclaimer;
10955SN/A# redistributions in binary form must reproduce the above copyright
11955SN/A# notice, this list of conditions and the following disclaimer in the
12955SN/A# documentation and/or other materials provided with the distribution;
13955SN/A# neither the name of the copyright holders nor the names of its
14955SN/A# contributors may be used to endorse or promote products derived from
15955SN/A# this software without specific prior written permission.
16955SN/A#
17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
294762Snate@binkert.org# Authors: Gabe Black
30955SN/A
315522Snate@binkert.org# Copyright (c) 2007 The Hewlett-Packard Development Company
326143Snate@binkert.org# All rights reserved.
334762Snate@binkert.org#
345522Snate@binkert.org# Redistribution and use of this software in source and binary forms,
35955SN/A# with or without modification, are permitted provided that the
365522Snate@binkert.org# following conditions are met:
37955SN/A#
385522Snate@binkert.org# The software must be used only for Non-Commercial Use which means any
394202Sbinkertn@umich.edu# use which is NOT directed to receiving any direct monetary
405742Snate@binkert.org# compensation for, or commercial advantage from such use.  Illustrative
41955SN/A# examples of non-commercial use are academic research, personal study,
424381Sbinkertn@umich.edu# teaching, education and corporate research & development.
434381Sbinkertn@umich.edu# Illustrative examples of commercial use are distributing products for
448334Snate@binkert.org# commercial advantage and providing services using the software for
45955SN/A# commercial advantage.
46955SN/A#
474202Sbinkertn@umich.edu# If you wish to use this software or functionality therein that may be
48955SN/A# covered by patents for commercial use, please contact:
494382Sbinkertn@umich.edu#     Director of Intellectual Property Licensing
504382Sbinkertn@umich.edu#     Office of Strategy and Technology
514382Sbinkertn@umich.edu#     Hewlett-Packard Company
526654Snate@binkert.org#     1501 Page Mill Road
535517Snate@binkert.org#     Palo Alto, California  94304
548614Sgblack@eecs.umich.edu#
557674Snate@binkert.org# Redistributions of source code must retain the above copyright notice,
566143Snate@binkert.org# this list of conditions and the following disclaimer.  Redistributions
576143Snate@binkert.org# in binary form must reproduce the above copyright notice, this list of
586143Snate@binkert.org# conditions and the following disclaimer in the documentation and/or
598233Snate@binkert.org# other materials provided with the distribution.  Neither the name of
608233Snate@binkert.org# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
618233Snate@binkert.org# contributors may be used to endorse or promote products derived from
628233Snate@binkert.org# this software without specific prior written permission.  No right of
638233Snate@binkert.org# sublicense is granted herewith.  Derivatives of the software and
648334Snate@binkert.org# output created using the software may be prepared, but only for
658334Snate@binkert.org# Non-Commercial Uses.  Derivatives of the software may be shared with
668233Snate@binkert.org# others provided: (i) the others agree to abide by the list of
678233Snate@binkert.org# conditions herein which includes the Non-Commercial Use restrictions;
688233Snate@binkert.org# and (ii) such Derivatives of the software include the above copyright
698233Snate@binkert.org# notice to acknowledge the contribution from this software where
708233Snate@binkert.org# applicable, this list of conditions and the disclaimer below.
718233Snate@binkert.org#
726143Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
738233Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
748233Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
758233Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
766143Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
776143Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
786143Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
796143Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
808233Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
818233Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
828233Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
836143Snate@binkert.org#
848233Snate@binkert.org# Authors: Gabe Black
858233Snate@binkert.org
868233Snate@binkert.orgImport('*')
878233Snate@binkert.org
886143Snate@binkert.orgif env['TARGET_ISA'] == 'x86':
896143Snate@binkert.org    Source('floatregfile.cc')
906143Snate@binkert.org    Source('intregfile.cc')
914762Snate@binkert.org    Source('miscregfile.cc')
926143Snate@binkert.org    Source('regfile.cc')
938233Snate@binkert.org    Source('remote_gdb.cc')
948233Snate@binkert.org
958233Snate@binkert.org    if env['FULL_SYSTEM']:
968233Snate@binkert.org        # Full-system sources
978233Snate@binkert.org        pass
986143Snate@binkert.org    else:
998233Snate@binkert.org        Source('process.cc')
1008233Snate@binkert.org
1018233Snate@binkert.org        Source('linux/linux.cc')
1028233Snate@binkert.org        Source('linux/process.cc')
1036143Snate@binkert.org        Source('linux/syscalls.cc')
1046143Snate@binkert.org
1056143Snate@binkert.org    # Add in files generated by the ISA description.
1066143Snate@binkert.org    isa_desc_files = env.ISADesc('isa/main.isa')
1076143Snate@binkert.org    # Only non-header files need to be compiled.
1086143Snate@binkert.org    for f in isa_desc_files:
1096143Snate@binkert.org        if not f.path.endswith('.hh'):
1106143Snate@binkert.org            Source(f)
1116143Snate@binkert.org