SConscript revision 8335:9228e00459d4
15434Sgblack@eecs.umich.edu# -*- mode:python -*-
24276Sgblack@eecs.umich.edu
34276Sgblack@eecs.umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
44276Sgblack@eecs.umich.edu# All rights reserved.
54276Sgblack@eecs.umich.edu#
64276Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
74276Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
84276Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
94276Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
104276Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
114276Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
124276Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
134276Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
144276Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
154276Sgblack@eecs.umich.edu# this software without specific prior written permission.
164276Sgblack@eecs.umich.edu#
174276Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
184276Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
194276Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
204276Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
214276Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
224276Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
234276Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
244276Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
254276Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
264276Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
274276Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
284276Sgblack@eecs.umich.edu#
294276Sgblack@eecs.umich.edu# Authors: Steve Reinhardt
304276Sgblack@eecs.umich.edu
314276Sgblack@eecs.umich.eduImport('*')
324276Sgblack@eecs.umich.edu
334276Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'no':
344276Sgblack@eecs.umich.edu    Return()
354276Sgblack@eecs.umich.edu
364276Sgblack@eecs.umich.eduif env['FULL_SYSTEM']:
374276Sgblack@eecs.umich.edu    Source('kernel_stats.cc')
384276Sgblack@eecs.umich.edu    Source('system_events.cc')
394276Sgblack@eecs.umich.edu
404276Sgblack@eecs.umich.edu    DebugFlag('DebugPrintf')
414276Sgblack@eecs.umich.edu    DebugFlag('Printf')
424276Sgblack@eecs.umich.edu
434276Sgblack@eecs.umich.edu    Source('linux/events.cc')
444276Sgblack@eecs.umich.edu    Source('linux/linux_syscalls.cc')
454276Sgblack@eecs.umich.edu    Source('linux/printk.cc')
464276Sgblack@eecs.umich.edu    
474276Sgblack@eecs.umich.edu    if env['TARGET_ISA'] == 'alpha':
484276Sgblack@eecs.umich.edu        Source('tru64/dump_mbuf.cc')
494276Sgblack@eecs.umich.edu        Source('tru64/printf.cc')
504276Sgblack@eecs.umich.edu        Source('tru64/tru64_events.cc')
514276Sgblack@eecs.umich.edu        Source('tru64/tru64_syscalls.cc')
524276Sgblack@eecs.umich.edu        DebugFlag('BADADDR')
534276Sgblack@eecs.umich.eduelse:
544276Sgblack@eecs.umich.edu    Source('linux/linux.cc')
554276Sgblack@eecs.umich.edu    Source('operatingsystem.cc')
564276Sgblack@eecs.umich.edu