SConscript revision 5403
11046SN/A# -*- mode:python -*-
21046SN/A
31762SN/A# Copyright (c) 2006 The Regents of The University of Michigan
41046SN/A# All rights reserved.
51046SN/A#
61046SN/A# Redistribution and use in source and binary forms, with or without
71046SN/A# modification, are permitted provided that the following conditions are
81046SN/A# met: redistributions of source code must retain the above copyright
91046SN/A# notice, this list of conditions and the following disclaimer;
101046SN/A# redistributions in binary form must reproduce the above copyright
111046SN/A# notice, this list of conditions and the following disclaimer in the
121046SN/A# documentation and/or other materials provided with the distribution;
131046SN/A# neither the name of the copyright holders nor the names of its
141046SN/A# contributors may be used to endorse or promote products derived from
151046SN/A# this software without specific prior written permission.
161046SN/A#
171046SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
181046SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
191046SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
201046SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
211046SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
221046SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
231046SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
241046SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
251046SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
261046SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
271046SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
292665Ssaidi@eecs.umich.edu# Authors: Steve Reinhardt
302665Ssaidi@eecs.umich.edu
311046SN/AImport('*')
321530SN/A
332655Sstever@eecs.umich.eduif env['FULL_SYSTEM']:
342655Sstever@eecs.umich.edu    Source('kernel_stats.cc')
352655Sstever@eecs.umich.edu    Source('system_events.cc')
362655Sstever@eecs.umich.edu
372655Sstever@eecs.umich.edu    TraceFlag('DebugPrintf')
381530SN/A    TraceFlag('Printf')
391530SN/A
401530SN/A    Source('linux/events.cc')
412667Sstever@eecs.umich.edu    Source('linux/linux_syscalls.cc')
422667Sstever@eecs.umich.edu    Source('linux/printk.cc')
431046SN/A
442655Sstever@eecs.umich.edu    if env['TARGET_ISA'] == 'alpha':
452655Sstever@eecs.umich.edu        Source('tru64/dump_mbuf.cc')
462655Sstever@eecs.umich.edu        Source('tru64/printf.cc')
472655Sstever@eecs.umich.edu        Source('tru64/tru64_events.cc')
482655Sstever@eecs.umich.edu        Source('tru64/tru64_syscalls.cc')
491046SN/A        TraceFlag('BADADDR')
502655Sstever@eecs.umich.edu
512655Sstever@eecs.umich.edu# Workaround for bug in SCons version > 0.97d20071212
522655Sstever@eecs.umich.edu# Scons bug id: 2006 M5 Bug id: 308
532655Sstever@eecs.umich.eduelse:
541046SN/A    Dir('linux')
552655Sstever@eecs.umich.edu    if env['TARGET_ISA'] == 'alpha':
562655Sstever@eecs.umich.edu        Dir('tru64')
572655Sstever@eecs.umich.edu    elif env['TARGET_ISA'] == 'sparc':
582667Sstever@eecs.umich.edu        Dir('solaris')
592655Sstever@eecs.umich.edu