SConscript revision 10069
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.comSimObject('Device.py')
3510069Sandreas.hansson@arm.comSource('io_device.cc')
3610069Sandreas.hansson@arm.comSource('isa_fake.cc')
3711765Sandreas.sandberg@arm.comDebugFlag('IsaFake')
3811765Sandreas.sandberg@arm.com
3910069Sandreas.hansson@arm.comif env['TARGET_ISA'] == 'null':
4011765Sandreas.sandberg@arm.com    Return()
4110069Sandreas.hansson@arm.com
4213227Sgabeblack@google.comSimObject('BadDevice.py')
4313227Sgabeblack@google.comSimObject('CopyEngine.py')
4413227Sgabeblack@google.comSimObject('DiskImage.py')
459850Sandreas.hansson@arm.comSimObject('Ethernet.py')
467768SAli.Saidi@ARM.comSimObject('Ide.py')
477768SAli.Saidi@ARM.comSimObject('Pci.py')
488739Sgblack@eecs.umich.eduSimObject('Platform.py')
494486Sbinkertn@umich.eduSimObject('SimpleDisk.py')
508739Sgblack@eecs.umich.eduSimObject('Terminal.py')
518739Sgblack@eecs.umich.eduSimObject('Uart.py')
528739Sgblack@eecs.umich.edu
5311012Sandreas.sandberg@arm.comSource('baddev.cc')
545192Ssaidi@eecs.umich.eduSource('copy_engine.cc')
558739Sgblack@eecs.umich.eduSource('disk_image.cc')
568739Sgblack@eecs.umich.eduSource('dma_device.cc')
57Source('etherbus.cc')
58Source('etherdevice.cc')
59Source('etherdump.cc')
60Source('etherint.cc')
61Source('etherlink.cc')
62Source('etherpkt.cc')
63Source('ethertap.cc')
64Source('i8254xGBe.cc')
65Source('ide_ctrl.cc')
66Source('ide_disk.cc')
67Source('intel_8254_timer.cc')
68Source('mc146818.cc')
69Source('ns_gige.cc')
70Source('pciconfigall.cc')
71Source('pcidev.cc')
72Source('pktfifo.cc')
73Source('platform.cc')
74Source('ps2.cc')
75Source('simple_disk.cc')
76Source('sinic.cc')
77Source('terminal.cc')
78Source('uart.cc')
79Source('uart8250.cc')
80
81DebugFlag('DiskImageRead')
82DebugFlag('DiskImageWrite')
83DebugFlag('DMA')
84DebugFlag('DMACopyEngine')
85DebugFlag('Ethernet')
86DebugFlag('EthernetCksum')
87DebugFlag('EthernetDMA')
88DebugFlag('EthernetData')
89DebugFlag('EthernetDesc')
90DebugFlag('EthernetEEPROM')
91DebugFlag('EthernetIntr')
92DebugFlag('EthernetPIO')
93DebugFlag('EthernetSM')
94DebugFlag('IdeCtrl')
95DebugFlag('IdeDisk')
96DebugFlag('Intel8254Timer')
97DebugFlag('MC146818')
98DebugFlag('PCIDEV')
99DebugFlag('PciConfigAll')
100DebugFlag('SimpleDisk')
101DebugFlag('SimpleDiskData')
102DebugFlag('Terminal')
103DebugFlag('TerminalVerbose')
104DebugFlag('Uart')
105
106CompoundFlag('DiskImageAll', [ 'DiskImageRead', 'DiskImageWrite' ])
107CompoundFlag('EthernetAll', [ 'Ethernet', 'EthernetPIO', 'EthernetDMA',
108    'EthernetData' , 'EthernetDesc', 'EthernetIntr', 'EthernetSM',
109    'EthernetCksum', 'EthernetEEPROM' ])
110CompoundFlag('EthernetNoData', [ 'Ethernet', 'EthernetPIO', 'EthernetDesc',
111    'EthernetIntr', 'EthernetSM', 'EthernetCksum' ])
112CompoundFlag('IdeAll', [ 'IdeCtrl', 'IdeDisk' ])
113