SConscript (3543:0c6fca031c44) SConscript (4202:f7a05daec670)
1# -*- mode:python -*-
2
3# Copyright (c) 2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# Authors: Steve Reinhardt
30# Gabe Black
31
1# -*- mode:python -*-
2
3# Copyright (c) 2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# Authors: Steve Reinhardt
30# Gabe Black
31
32import os.path, sys
32Import('*')
33
33
34# Import build environment variable from SConstruct.
35Import('env')
36
37# Right now there are no source files immediately in this directory
38sources = []
39
40#
41# Now include other ISA-specific sources from the ISA subdirectories.
42#
43
44isa = env['TARGET_ISA'] # someday this may be a list of ISAs
45
46#
47# These source files can be used by any architecture
48#
49
50sources += Split('''
51 baddev.cc
52 disk_image.cc
53 etherbus.cc
54 etherdump.cc
55 etherint.cc
56 etherlink.cc
57 etherpkt.cc
58 ethertap.cc
59 ide_ctrl.cc
60 ide_disk.cc
61 io_device.cc
62 isa_fake.cc
63 ns_gige.cc
64 pciconfigall.cc
65 pcidev.cc
66 pktfifo.cc
67 platform.cc
68 simconsole.cc
69 simple_disk.cc
70 ''')
71
72# Let the target architecture define what additional sources it needs
73sources += SConscript(os.path.join(isa, 'SConscript'), exports = 'env')
74
75# Convert file names to SCons File objects. This takes care of the
76# path relative to the top of the directory tree.
77sources = [File(s) for s in sources]
78
79Return('sources')
34if env['FULL_SYSTEM']:
35 Source('baddev.cc')
36 Source('disk_image.cc')
37 Source('etherbus.cc')
38 Source('etherdump.cc')
39 Source('etherint.cc')
40 Source('etherlink.cc')
41 Source('etherpkt.cc')
42 Source('ethertap.cc')
43 #Source('i8254xGBe.cc')
44 Source('ide_ctrl.cc')
45 Source('ide_disk.cc')
46 Source('io_device.cc')
47 Source('isa_fake.cc')
48 Source('ns_gige.cc')
49 Source('pciconfigall.cc')
50 Source('pcidev.cc')
51 Source('pktfifo.cc')
52 Source('platform.cc')
53 Source('simconsole.cc')
54 Source('simple_disk.cc')
55 #Source('sinic.cc')
56 Source('uart.cc')
57 Source('uart8250.cc')