SConscript revision 4249
16019Shines@cs.fsu.edu# -*- mode:python -*-
26019Shines@cs.fsu.edu
37100Sgblack@eecs.umich.edu# Copyright (c) 2005-2006 The Regents of The University of Michigan
47100Sgblack@eecs.umich.edu# All rights reserved.
57100Sgblack@eecs.umich.edu#
67100Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
77100Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
87100Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
97100Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
107100Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
117100Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
127100Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
137100Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
147100Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
156019Shines@cs.fsu.edu# this software without specific prior written permission.
166019Shines@cs.fsu.edu#
176019Shines@cs.fsu.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
186019Shines@cs.fsu.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
196019Shines@cs.fsu.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
206019Shines@cs.fsu.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
216019Shines@cs.fsu.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
226019Shines@cs.fsu.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
236019Shines@cs.fsu.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
246019Shines@cs.fsu.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
256019Shines@cs.fsu.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
266019Shines@cs.fsu.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
276019Shines@cs.fsu.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
286019Shines@cs.fsu.edu#
296019Shines@cs.fsu.edu# Authors: Gabe Black
306019Shines@cs.fsu.edu
316019Shines@cs.fsu.edu# Copyright (c) 2007 The Hewlett-Packard Development Company
326019Shines@cs.fsu.edu# All rights reserved.
336019Shines@cs.fsu.edu#
346019Shines@cs.fsu.edu# Redistribution and use of this software in source and binary forms,
356019Shines@cs.fsu.edu# with or without modification, are permitted provided that the
366019Shines@cs.fsu.edu# following conditions are met:
376019Shines@cs.fsu.edu#
386019Shines@cs.fsu.edu# The software must be used only for Non-Commercial Use which means any
396019Shines@cs.fsu.edu# use which is NOT directed to receiving any direct monetary
406019Shines@cs.fsu.edu# compensation for, or commercial advantage from such use.  Illustrative
416019Shines@cs.fsu.edu# examples of non-commercial use are academic research, personal study,
426757SAli.Saidi@ARM.com# teaching, education and corporate research & development.
436019Shines@cs.fsu.edu# Illustrative examples of commercial use are distributing products for
446019Shines@cs.fsu.edu# commercial advantage and providing services using the software for
456019Shines@cs.fsu.edu# commercial advantage.
466019Shines@cs.fsu.edu#
476019Shines@cs.fsu.edu# If you wish to use this software or functionality therein that may be
486019Shines@cs.fsu.edu# covered by patents for commercial use, please contact:
496019Shines@cs.fsu.edu#     Director of Intellectual Property Licensing
506019Shines@cs.fsu.edu#     Office of Strategy and Technology
517170Sgblack@eecs.umich.edu#     Hewlett-Packard Company
526253Sgblack@eecs.umich.edu#     1501 Page Mill Road
537202Sgblack@eecs.umich.edu#     Palo Alto, California  94304
546253Sgblack@eecs.umich.edu#
556253Sgblack@eecs.umich.edu# Redistributions of source code must retain the above copyright notice,
567396Sgblack@eecs.umich.edu# this list of conditions and the following disclaimer.  Redistributions
577405SAli.Saidi@ARM.com# in binary form must reproduce the above copyright notice, this list of
587259Sgblack@eecs.umich.edu# conditions and the following disclaimer in the documentation and/or
597423Sgblack@eecs.umich.edu# other materials provided with the distribution.  Neither the name of
606397Sgblack@eecs.umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
616019Shines@cs.fsu.edu# contributors may be used to endorse or promote products derived from
626757SAli.Saidi@ARM.com# this software without specific prior written permission.  No right of
636019Shines@cs.fsu.edu# sublicense is granted herewith.  Derivatives of the software and
646397Sgblack@eecs.umich.edu# output created using the software may be prepared, but only for
656019Shines@cs.fsu.edu# Non-Commercial Uses.  Derivatives of the software may be shared with
666397Sgblack@eecs.umich.edu# others provided: (i) the others agree to abide by the list of
676019Shines@cs.fsu.edu# conditions herein which includes the Non-Commercial Use restrictions;
687404SAli.Saidi@ARM.com# and (ii) such Derivatives of the software include the above copyright
696735Sgblack@eecs.umich.edu# notice to acknowledge the contribution from this software where
707100Sgblack@eecs.umich.edu# applicable, this list of conditions and the disclaimer below.
716019Shines@cs.fsu.edu#
726757SAli.Saidi@ARM.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
736757SAli.Saidi@ARM.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
746757SAli.Saidi@ARM.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
757694SAli.Saidi@ARM.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
767585SAli.Saidi@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
777404SAli.Saidi@ARM.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
786757SAli.Saidi@ARM.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
796757SAli.Saidi@ARM.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
806757SAli.Saidi@ARM.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
816019Shines@cs.fsu.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
826019Shines@cs.fsu.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
836019Shines@cs.fsu.edu#
846019Shines@cs.fsu.edu# Authors: Gabe Black
856019Shines@cs.fsu.edu
866019Shines@cs.fsu.eduImport('*')
876019Shines@cs.fsu.eduif env['TARGET_ISA'] == 'x86':
886019Shines@cs.fsu.edu    Source('floatregfile.cc')
896019Shines@cs.fsu.edu    Source('intregfile.cc')
906019Shines@cs.fsu.edu    Source('miscregfile.cc')
916019Shines@cs.fsu.edu    Source('predecoder.cc')
926019Shines@cs.fsu.edu    Source('predecoder_tables.cc')
93    Source('regfile.cc')
94    Source('remote_gdb.cc')
95
96    if env['FULL_SYSTEM']:
97        # Full-system sources
98        pass
99    else:
100        Source('process.cc')
101
102        Source('linux/linux.cc')
103        Source('linux/process.cc')
104        Source('linux/syscalls.cc')
105
106    # Add in files generated by the ISA description.
107    isa_desc_files = env.ISADesc('isa/main.isa')
108    # Only non-header files need to be compiled.
109    for f in isa_desc_files:
110        if not f.path.endswith('.hh'):
111            Source(f)
112