SConscript revision 11247
12929Sktlim@umich.edu# -*- mode:python -*-
22929Sktlim@umich.edu
32932Sktlim@umich.edu# Copyright (c) 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: Nathan Binkert
302932Sktlim@umich.edu
312929Sktlim@umich.eduImport('*')
326007Ssteve.reinhardt@amd.com
337735SAli.Saidi@ARM.comif env['CP_ANNOTATE']:
342929Sktlim@umich.edu    SimObject('CPA.py')
352929Sktlim@umich.edu    Source('cp_annotate.cc')
362929Sktlim@umich.eduSource('atomicio.cc')
372929Sktlim@umich.eduSource('bigint.cc')
382929Sktlim@umich.eduSource('bitmap.cc')
392929Sktlim@umich.eduSource('callback.cc')
402929Sktlim@umich.eduSource('cprintf.cc')
412929Sktlim@umich.eduSource('debug.cc')
422929Sktlim@umich.eduif env['USE_FENV']:
432929Sktlim@umich.edu    Source('fenv.c')
442929Sktlim@umich.eduSource('framebuffer.cc')
452929Sktlim@umich.eduSource('hostinfo.cc')
462929Sktlim@umich.eduSource('inet.cc')
476007Ssteve.reinhardt@amd.comSource('inifile.cc')
486007Ssteve.reinhardt@amd.comSource('intmath.cc')
496007Ssteve.reinhardt@amd.comSource('match.cc')
506007Ssteve.reinhardt@amd.comSource('misc.cc')
516007Ssteve.reinhardt@amd.comSource('output.cc')
526007Ssteve.reinhardt@amd.comSource('pollevent.cc')
536007Ssteve.reinhardt@amd.comSource('random.cc')
546007Ssteve.reinhardt@amd.comif env['TARGET_ISA'] != 'null':
556007Ssteve.reinhardt@amd.com    Source('remote_gdb.cc')
566007Ssteve.reinhardt@amd.comSource('socket.cc')
576007Ssteve.reinhardt@amd.comSource('statistics.cc')
586007Ssteve.reinhardt@amd.comSource('str.cc')
596007Ssteve.reinhardt@amd.comSource('time.cc')
606007Ssteve.reinhardt@amd.comSource('trace.cc')
616007Ssteve.reinhardt@amd.comSource('types.cc')
626007Ssteve.reinhardt@amd.com
636007Ssteve.reinhardt@amd.comSource('loader/aout_object.cc')
646007Ssteve.reinhardt@amd.comSource('loader/dtb_object.cc')
656007Ssteve.reinhardt@amd.comSource('loader/ecoff_object.cc')
666007Ssteve.reinhardt@amd.comSource('loader/elf_object.cc')
676007Ssteve.reinhardt@amd.comSource('loader/hex_file.cc')
686007Ssteve.reinhardt@amd.comSource('loader/object_file.cc')
696007Ssteve.reinhardt@amd.comSource('loader/raw_object.cc')
706007Ssteve.reinhardt@amd.comSource('loader/symtab.cc')
716007Ssteve.reinhardt@amd.com
726007Ssteve.reinhardt@amd.comSource('stats/text.cc')
736007Ssteve.reinhardt@amd.com
746007Ssteve.reinhardt@amd.comDebugFlag('Annotate', "State machine annotation debugging")
756007Ssteve.reinhardt@amd.comDebugFlag('AnnotateQ', "State machine annotation queue debugging")
762929Sktlim@umich.eduDebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
772929Sktlim@umich.eduDebugFlag('GDBAcc', "Remote debugger accesses")
782929Sktlim@umich.eduDebugFlag('GDBExtra', "Dump extra information on reads and writes")
796007Ssteve.reinhardt@amd.comDebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
806007Ssteve.reinhardt@amd.comDebugFlag('GDBRead', "Reads to the remote address space")
816007Ssteve.reinhardt@amd.comDebugFlag('GDBRecv', "Messages received from the remote application")
826007Ssteve.reinhardt@amd.comDebugFlag('GDBSend', "Messages sent to the remote application")
836007Ssteve.reinhardt@amd.comDebugFlag('GDBWrite', "Writes to the remote address space")
846007Ssteve.reinhardt@amd.comDebugFlag('SQL', "SQL queries sent to the server")
852929Sktlim@umich.eduDebugFlag('StatEvents', "Statistics event tracking")
862929Sktlim@umich.edu
872929Sktlim@umich.eduCompoundFlag('GDBAll',
882929Sktlim@umich.edu    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
892929Sktlim@umich.edu      'GDBExtra' ],
906011Ssteve.reinhardt@amd.com    desc="All Remote debugging flags")
916007Ssteve.reinhardt@amd.comCompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
926007Ssteve.reinhardt@amd.com    desc="All Annotation flags")
936007Ssteve.reinhardt@amd.com
946007Ssteve.reinhardt@amd.com