SConscript revision 9850:87d6b41749e9
17119Sgblack@eecs.umich.edu# -*- mode:python -*-
27119Sgblack@eecs.umich.edu
37120Sgblack@eecs.umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
47120Sgblack@eecs.umich.edu# All rights reserved.
57120Sgblack@eecs.umich.edu#
67120Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
77120Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
87120Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
97120Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
107120Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
117120Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
127120Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
137120Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
147120Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
157119Sgblack@eecs.umich.edu# this software without specific prior written permission.
167119Sgblack@eecs.umich.edu#
177119Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
187119Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
197119Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
207119Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
217119Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
227119Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
237119Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
247119Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
257119Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
267119Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
277119Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
287119Sgblack@eecs.umich.edu#
297119Sgblack@eecs.umich.edu# Authors: Nathan Binkert
307119Sgblack@eecs.umich.edu
317119Sgblack@eecs.umich.eduImport('*')
327119Sgblack@eecs.umich.edu
337119Sgblack@eecs.umich.eduif env['CP_ANNOTATE']:
347119Sgblack@eecs.umich.edu    SimObject('CPA.py')
357119Sgblack@eecs.umich.edu    Source('cp_annotate.cc')
367119Sgblack@eecs.umich.eduSource('atomicio.cc')
377119Sgblack@eecs.umich.eduSource('bigint.cc')
387119Sgblack@eecs.umich.eduSource('bitmap.cc')
397119Sgblack@eecs.umich.eduSource('callback.cc')
407119Sgblack@eecs.umich.eduSource('circlebuf.cc')
417119Sgblack@eecs.umich.eduSource('cprintf.cc')
427119Sgblack@eecs.umich.eduSource('debug.cc')
437119Sgblack@eecs.umich.eduif env['USE_FENV']:
447119Sgblack@eecs.umich.edu    Source('fenv.c')
457119Sgblack@eecs.umich.eduSource('hostinfo.cc')
467119Sgblack@eecs.umich.eduSource('inet.cc')
477119Sgblack@eecs.umich.eduSource('inifile.cc')
487119Sgblack@eecs.umich.eduSource('intmath.cc')
497119Sgblack@eecs.umich.eduSource('match.cc')
507119Sgblack@eecs.umich.eduSource('misc.cc')
517119Sgblack@eecs.umich.eduSource('output.cc')
527119Sgblack@eecs.umich.eduSource('pollevent.cc')
537119Sgblack@eecs.umich.eduSource('random.cc')
547119Sgblack@eecs.umich.eduSource('random_mt.cc')
557119Sgblack@eecs.umich.eduif env['TARGET_ISA'] != 'null':
567119Sgblack@eecs.umich.edu    Source('remote_gdb.cc')
577119Sgblack@eecs.umich.eduSource('socket.cc')
587119Sgblack@eecs.umich.eduSource('statistics.cc')
597119Sgblack@eecs.umich.eduSource('str.cc')
607119Sgblack@eecs.umich.eduSource('time.cc')
617119Sgblack@eecs.umich.eduSource('trace.cc')
627119Sgblack@eecs.umich.eduSource('types.cc')
637119Sgblack@eecs.umich.eduSource('userinfo.cc')
647119Sgblack@eecs.umich.edu
657119Sgblack@eecs.umich.eduSource('loader/aout_object.cc')
667119Sgblack@eecs.umich.eduSource('loader/dtb_object.cc')
677119Sgblack@eecs.umich.eduSource('loader/ecoff_object.cc')
687119Sgblack@eecs.umich.eduSource('loader/elf_object.cc')
697119Sgblack@eecs.umich.eduSource('loader/hex_file.cc')
707119Sgblack@eecs.umich.eduSource('loader/object_file.cc')
717120Sgblack@eecs.umich.eduSource('loader/raw_object.cc')
727120Sgblack@eecs.umich.eduSource('loader/symtab.cc')
737120Sgblack@eecs.umich.edu
747120Sgblack@eecs.umich.eduSource('stats/text.cc')
757120Sgblack@eecs.umich.edu
767120Sgblack@eecs.umich.eduDebugFlag('Annotate', "State machine annotation debugging")
777120Sgblack@eecs.umich.eduDebugFlag('AnnotateQ', "State machine annotation queue debugging")
787120Sgblack@eecs.umich.eduDebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
797120Sgblack@eecs.umich.eduDebugFlag('GDBAcc', "Remote debugger accesses")
807120Sgblack@eecs.umich.eduDebugFlag('GDBExtra', "Dump extra information on reads and writes")
817120Sgblack@eecs.umich.eduDebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
827120Sgblack@eecs.umich.eduDebugFlag('GDBRead', "Reads to the remote address space")
837120Sgblack@eecs.umich.eduDebugFlag('GDBRecv', "Messages received from the remote application")
847120Sgblack@eecs.umich.eduDebugFlag('GDBSend', "Messages sent to the remote application")
857120Sgblack@eecs.umich.eduDebugFlag('GDBWrite', "Writes to the remote address space")
867120Sgblack@eecs.umich.eduDebugFlag('SQL', "SQL queries sent to the server")
877120Sgblack@eecs.umich.eduDebugFlag('StatEvents', "Statistics event tracking")
887120Sgblack@eecs.umich.edu
897120Sgblack@eecs.umich.eduCompoundFlag('GDBAll',
907120Sgblack@eecs.umich.edu    [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
917120Sgblack@eecs.umich.edu      'GDBExtra' ],
927120Sgblack@eecs.umich.edu    desc="All Remote debugging flags")
937120Sgblack@eecs.umich.eduCompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
947120Sgblack@eecs.umich.edu    desc="All Annotation flags")
957120Sgblack@eecs.umich.edu
967120Sgblack@eecs.umich.edu