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')
3710069Sandreas.hansson@arm.comDebugFlag('IsaFake')
3810069Sandreas.hansson@arm.com
399850Sandreas.hansson@arm.comif env['TARGET_ISA'] == 'null':
407768SAli.Saidi@ARM.com    Return()
417768SAli.Saidi@ARM.com
428739Sgblack@eecs.umich.eduSimObject('BadDevice.py')
438739Sgblack@eecs.umich.eduSimObject('CopyEngine.py')
448739Sgblack@eecs.umich.eduSimObject('DiskImage.py')
458739Sgblack@eecs.umich.eduSimObject('Ethernet.py')
468739Sgblack@eecs.umich.eduSimObject('Ide.py')
478739Sgblack@eecs.umich.eduSimObject('Pci.py')
488739Sgblack@eecs.umich.eduSimObject('Platform.py')
498739Sgblack@eecs.umich.eduSimObject('SimpleDisk.py')
508739Sgblack@eecs.umich.eduSimObject('Terminal.py')
518739Sgblack@eecs.umich.eduSimObject('Uart.py')
524486Sbinkertn@umich.edu
538739Sgblack@eecs.umich.eduSource('baddev.cc')
548739Sgblack@eecs.umich.eduSource('copy_engine.cc')
558739Sgblack@eecs.umich.eduSource('disk_image.cc')
569016Sandreas.hansson@arm.comSource('dma_device.cc')
578739Sgblack@eecs.umich.eduSource('etherbus.cc')
588739Sgblack@eecs.umich.eduSource('etherdevice.cc')
598739Sgblack@eecs.umich.eduSource('etherdump.cc')
608739Sgblack@eecs.umich.eduSource('etherint.cc')
618739Sgblack@eecs.umich.eduSource('etherlink.cc')
628739Sgblack@eecs.umich.eduSource('etherpkt.cc')
638739Sgblack@eecs.umich.eduSource('ethertap.cc')
648739Sgblack@eecs.umich.eduSource('i8254xGBe.cc')
658739Sgblack@eecs.umich.eduSource('ide_ctrl.cc')
668739Sgblack@eecs.umich.eduSource('ide_disk.cc')
678739Sgblack@eecs.umich.eduSource('intel_8254_timer.cc')
688739Sgblack@eecs.umich.eduSource('mc146818.cc')
698739Sgblack@eecs.umich.eduSource('ns_gige.cc')
708739Sgblack@eecs.umich.eduSource('pciconfigall.cc')
718739Sgblack@eecs.umich.eduSource('pcidev.cc')
728739Sgblack@eecs.umich.eduSource('pktfifo.cc')
738739Sgblack@eecs.umich.eduSource('platform.cc')
748739Sgblack@eecs.umich.eduSource('ps2.cc')
758739Sgblack@eecs.umich.eduSource('simple_disk.cc')
768739Sgblack@eecs.umich.eduSource('sinic.cc')
778739Sgblack@eecs.umich.eduSource('terminal.cc')
788739Sgblack@eecs.umich.eduSource('uart.cc')
798739Sgblack@eecs.umich.eduSource('uart8250.cc')
805192Ssaidi@eecs.umich.edu
818739Sgblack@eecs.umich.eduDebugFlag('DiskImageRead')
828739Sgblack@eecs.umich.eduDebugFlag('DiskImageWrite')
838739Sgblack@eecs.umich.eduDebugFlag('DMA')
848739Sgblack@eecs.umich.eduDebugFlag('DMACopyEngine')
858739Sgblack@eecs.umich.eduDebugFlag('Ethernet')
868739Sgblack@eecs.umich.eduDebugFlag('EthernetCksum')
878739Sgblack@eecs.umich.eduDebugFlag('EthernetDMA')
888739Sgblack@eecs.umich.eduDebugFlag('EthernetData')
898739Sgblack@eecs.umich.eduDebugFlag('EthernetDesc')
908739Sgblack@eecs.umich.eduDebugFlag('EthernetEEPROM')
918739Sgblack@eecs.umich.eduDebugFlag('EthernetIntr')
928739Sgblack@eecs.umich.eduDebugFlag('EthernetPIO')
938739Sgblack@eecs.umich.eduDebugFlag('EthernetSM')
948739Sgblack@eecs.umich.eduDebugFlag('IdeCtrl')
958739Sgblack@eecs.umich.eduDebugFlag('IdeDisk')
968739Sgblack@eecs.umich.eduDebugFlag('Intel8254Timer')
978739Sgblack@eecs.umich.eduDebugFlag('MC146818')
988739Sgblack@eecs.umich.eduDebugFlag('PCIDEV')
998739Sgblack@eecs.umich.eduDebugFlag('PciConfigAll')
1008739Sgblack@eecs.umich.eduDebugFlag('SimpleDisk')
1018739Sgblack@eecs.umich.eduDebugFlag('SimpleDiskData')
1028739Sgblack@eecs.umich.eduDebugFlag('Terminal')
1038739Sgblack@eecs.umich.eduDebugFlag('TerminalVerbose')
1048739Sgblack@eecs.umich.eduDebugFlag('Uart')
1055192Ssaidi@eecs.umich.edu
1068739Sgblack@eecs.umich.eduCompoundFlag('DiskImageAll', [ 'DiskImageRead', 'DiskImageWrite' ])
1078739Sgblack@eecs.umich.eduCompoundFlag('EthernetAll', [ 'Ethernet', 'EthernetPIO', 'EthernetDMA',
1088739Sgblack@eecs.umich.edu    'EthernetData' , 'EthernetDesc', 'EthernetIntr', 'EthernetSM',
1098739Sgblack@eecs.umich.edu    'EthernetCksum', 'EthernetEEPROM' ])
1108739Sgblack@eecs.umich.eduCompoundFlag('EthernetNoData', [ 'Ethernet', 'EthernetPIO', 'EthernetDesc',
1118739Sgblack@eecs.umich.edu    'EthernetIntr', 'EthernetSM', 'EthernetCksum' ])
1128739Sgblack@eecs.umich.eduCompoundFlag('IdeAll', [ 'IdeCtrl', 'IdeDisk' ])
113