SConscript revision 8334
13534Sgblack@eecs.umich.edu# -*- mode:python -*-
23534Sgblack@eecs.umich.edu
33534Sgblack@eecs.umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
43534Sgblack@eecs.umich.edu# All rights reserved.
53534Sgblack@eecs.umich.edu#
63534Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
73534Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
83534Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
93534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
103534Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
113534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
123534Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
133534Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
143534Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
153534Sgblack@eecs.umich.edu# this software without specific prior written permission.
163534Sgblack@eecs.umich.edu#
173534Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
183534Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
193534Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
203534Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
213534Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
223534Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
233534Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
243534Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
253534Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
263534Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
273534Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
283534Sgblack@eecs.umich.edu#
293534Sgblack@eecs.umich.edu# Authors: Steve Reinhardt
303534Sgblack@eecs.umich.edu#          Gabe Black
313534Sgblack@eecs.umich.edu
324202Sbinkertn@umich.eduImport('*')
333534Sgblack@eecs.umich.edu
3410069Sandreas.hansson@arm.comif env['TARGET_ISA'] == 'no':
3510069Sandreas.hansson@arm.com    Return()
3610069Sandreas.hansson@arm.com
3711765Sandreas.sandberg@arm.comif env['FULL_SYSTEM']:
3811765Sandreas.sandberg@arm.com    SimObject('BadDevice.py')
3910069Sandreas.hansson@arm.com    SimObject('CopyEngine.py')
4011765Sandreas.sandberg@arm.com    SimObject('Device.py')
4110069Sandreas.hansson@arm.com    SimObject('DiskImage.py')
4213227Sgabeblack@google.com    SimObject('Ethernet.py')
4313227Sgabeblack@google.com    SimObject('Ide.py')
4413227Sgabeblack@google.com    SimObject('Pci.py')
459850Sandreas.hansson@arm.com    SimObject('Platform.py')
467768SAli.Saidi@ARM.com    SimObject('SimpleDisk.py')
477768SAli.Saidi@ARM.com    SimObject('Terminal.py')
488739Sgblack@eecs.umich.edu    SimObject('Uart.py')
494486Sbinkertn@umich.edu
508739Sgblack@eecs.umich.edu    Source('baddev.cc')
518739Sgblack@eecs.umich.edu    Source('copy_engine.cc')
528739Sgblack@eecs.umich.edu    Source('disk_image.cc')
5311012Sandreas.sandberg@arm.com    Source('etherbus.cc')
545192Ssaidi@eecs.umich.edu    Source('etherdevice.cc')
558739Sgblack@eecs.umich.edu    Source('etherdump.cc')
568739Sgblack@eecs.umich.edu    Source('etherint.cc')
57    Source('etherlink.cc')
58    Source('etherpkt.cc')
59    Source('ethertap.cc')
60    Source('i8254xGBe.cc')
61    Source('ide_ctrl.cc')
62    Source('ide_disk.cc')
63    Source('intel_8254_timer.cc')
64    Source('io_device.cc')
65    Source('isa_fake.cc')
66    Source('mc146818.cc')
67    Source('ns_gige.cc')
68    Source('pciconfigall.cc')
69    Source('pcidev.cc')
70    Source('pktfifo.cc')
71    Source('platform.cc')
72    Source('ps2.cc')
73    Source('simple_disk.cc')
74    Source('sinic.cc')
75    Source('terminal.cc')
76    Source('uart.cc')
77    Source('uart8250.cc')
78
79    TraceFlag('DiskImageRead')
80    TraceFlag('DiskImageWrite')
81    TraceFlag('DMA')
82    TraceFlag('DMACopyEngine')
83    TraceFlag('Ethernet')
84    TraceFlag('EthernetCksum')
85    TraceFlag('EthernetDMA')
86    TraceFlag('EthernetData')
87    TraceFlag('EthernetDesc')
88    TraceFlag('EthernetEEPROM')
89    TraceFlag('EthernetIntr')
90    TraceFlag('EthernetPIO')
91    TraceFlag('EthernetSM')
92    TraceFlag('IdeCtrl')
93    TraceFlag('IdeDisk')
94    TraceFlag('Intel8254Timer')
95    TraceFlag('IsaFake')
96    TraceFlag('MC146818')
97    TraceFlag('PCIDEV')
98    TraceFlag('PciConfigAll')
99    TraceFlag('SimpleDisk')
100    TraceFlag('SimpleDiskData')
101    TraceFlag('Terminal')
102    TraceFlag('TerminalVerbose')
103    TraceFlag('Uart')
104
105    CompoundFlag('DiskImageAll', [ 'DiskImageRead', 'DiskImageWrite' ])
106    CompoundFlag('EthernetAll', [ 'Ethernet', 'EthernetPIO', 'EthernetDMA',
107        'EthernetData' , 'EthernetDesc', 'EthernetIntr', 'EthernetSM',
108        'EthernetCksum', 'EthernetEEPROM' ])
109    CompoundFlag('EthernetNoData', [ 'Ethernet', 'EthernetPIO', 'EthernetDesc',
110        'EthernetIntr', 'EthernetSM', 'EthernetCksum' ])
111    CompoundFlag('IdeAll', [ 'IdeCtrl', 'IdeDisk' ])
112
113