# Authors: Steve Reinhardt
# Gabe Black
-import os.path, sys
+Import('*')
-# Import build environment variable from SConstruct.
-Import('env')
+SimObject('Device.py')
+Source('io_device.cc')
+Source('isa_fake.cc')
+Source('dma_device.cc')
-# Right now there are no source files immediately in this directory
-sources = []
+DebugFlag('IsaFake')
+DebugFlag('DMA')
-#
-# Now include other ISA-specific sources from the ISA subdirectories.
-#
-
-isa = env['TARGET_ISA'] # someday this may be a list of ISAs
-
-#
-# These source files can be used by any architecture
-#
+SimObject('Platform.py')
+Source('platform.cc')
-sources += Split('''
- baddev.cc
- disk_image.cc
- etherbus.cc
- etherdump.cc
- etherint.cc
- etherlink.cc
- etherpkt.cc
- ethertap.cc
- ide_ctrl.cc
- ide_disk.cc
- io_device.cc
- isa_fake.cc
- ns_gige.cc
- pciconfigall.cc
- pcidev.cc
- pcifake.cc
- pktfifo.cc
- platform.cc
- simconsole.cc
- simple_disk.cc
- ''')
+if env['TARGET_ISA'] == 'null':
+ Return()
-# Let the target architecture define what additional sources it needs
-sources += SConscript(os.path.join(isa, 'SConscript'), exports = 'env')
+SimObject('BadDevice.py')
-# Convert file names to SCons File objects. This takes care of the
-# path relative to the top of the directory tree.
-sources = [File(s) for s in sources]
+Source('baddev.cc')
+Source('intel_8254_timer.cc')
+Source('mc146818.cc')
+Source('pixelpump.cc')
-Return('sources')
+DebugFlag('Intel8254Timer')
+DebugFlag('MC146818')