SConscript revision 11263:8dcc6b40f164
1247Sstever@eecs.umich.edu# -*- mode:python -*-
2579Sstever@eecs.umich.edu
3247Sstever@eecs.umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
4247Sstever@eecs.umich.edu# All rights reserved.
5247Sstever@eecs.umich.edu#
6247Sstever@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
7247Sstever@eecs.umich.edu# modification, are permitted provided that the following conditions are
8247Sstever@eecs.umich.edu# met: redistributions of source code must retain the above copyright
9247Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
10247Sstever@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
11247Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
12247Sstever@eecs.umich.edu# documentation and/or other materials provided with the distribution;
13247Sstever@eecs.umich.edu# neither the name of the copyright holders nor the names of its
14247Sstever@eecs.umich.edu# contributors may be used to endorse or promote products derived from
15247Sstever@eecs.umich.edu# this software without specific prior written permission.
16247Sstever@eecs.umich.edu#
17247Sstever@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18247Sstever@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19247Sstever@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20247Sstever@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21247Sstever@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22247Sstever@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23247Sstever@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24247Sstever@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25247Sstever@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26247Sstever@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27247Sstever@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28247Sstever@eecs.umich.edu#
29247Sstever@eecs.umich.edu# Authors: Steve Reinhardt
30247Sstever@eecs.umich.edu#          Gabe Black
31247Sstever@eecs.umich.edu
32247Sstever@eecs.umich.eduImport('*')
33247Sstever@eecs.umich.edu
34247Sstever@eecs.umich.eduSimObject('Device.py')
35247Sstever@eecs.umich.eduSource('io_device.cc')
36247Sstever@eecs.umich.eduSource('isa_fake.cc')
37247Sstever@eecs.umich.eduDebugFlag('IsaFake')
38247Sstever@eecs.umich.edu
39247Sstever@eecs.umich.eduif env['TARGET_ISA'] == 'null':
40247Sstever@eecs.umich.edu    Return()
41247Sstever@eecs.umich.edu
42579Sstever@eecs.umich.eduSimObject('BadDevice.py')
43247Sstever@eecs.umich.eduSimObject('DiskImage.py')
44247Sstever@eecs.umich.eduSimObject('Ide.py')
45247Sstever@eecs.umich.eduSimObject('Platform.py')
46247Sstever@eecs.umich.eduSimObject('SimpleDisk.py')
47247Sstever@eecs.umich.eduSimObject('Terminal.py')
48247Sstever@eecs.umich.eduSimObject('Uart.py')
49247Sstever@eecs.umich.edu
50247Sstever@eecs.umich.eduSource('baddev.cc')
51247Sstever@eecs.umich.eduSource('disk_image.cc')
52247Sstever@eecs.umich.eduSource('dma_device.cc')
53247Sstever@eecs.umich.eduSource('ide_ctrl.cc')
54247Sstever@eecs.umich.eduSource('ide_disk.cc')
55247Sstever@eecs.umich.eduSource('intel_8254_timer.cc')
56Source('mc146818.cc')
57Source('pixelpump.cc')
58Source('platform.cc')
59Source('ps2.cc')
60Source('simple_disk.cc')
61Source('terminal.cc')
62Source('uart.cc')
63Source('uart8250.cc')
64
65DebugFlag('DiskImageRead')
66DebugFlag('DiskImageWrite')
67DebugFlag('DMA')
68DebugFlag('IdeCtrl')
69DebugFlag('IdeDisk')
70DebugFlag('Intel8254Timer')
71DebugFlag('MC146818')
72DebugFlag('SimpleDisk')
73DebugFlag('SimpleDiskData')
74DebugFlag('Terminal')
75DebugFlag('TerminalVerbose')
76DebugFlag('Uart')
77
78CompoundFlag('DiskImageAll', [ 'DiskImageRead', 'DiskImageWrite' ])
79CompoundFlag('IdeAll', [ 'IdeCtrl', 'IdeDisk' ])
80