SConscript revision 11290
13534Sgblack@eecs.umich.edu# -*- mode:python -*-
23534Sgblack@eecs.umich.edu
33534Sgblack@eecs.umich.edu# Copyright (c) 2015 ARM Limited
43534Sgblack@eecs.umich.edu# All rights reserved.
53534Sgblack@eecs.umich.edu#
63534Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall
73534Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual
83534Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating
93534Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software
103534Sgblack@eecs.umich.edu# licensed hereunder.  You may use the software subject to the license
113534Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated
123534Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software,
133534Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form.
143534Sgblack@eecs.umich.edu#
153534Sgblack@eecs.umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
163534Sgblack@eecs.umich.edu# All rights reserved.
173534Sgblack@eecs.umich.edu#
183534Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
193534Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
203534Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
213534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
223534Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
233534Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
243534Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
253534Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
263534Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
273534Sgblack@eecs.umich.edu# this software without specific prior written permission.
283534Sgblack@eecs.umich.edu#
293534Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
303534Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
313534Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
324202Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
333534Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
344202Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
354202Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
364202Sbinkertn@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
374202Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
384202Sbinkertn@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
394202Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
404202Sbinkertn@umich.edu#
414202Sbinkertn@umich.edu# Authors: Steve Reinhardt
424202Sbinkertn@umich.edu#          Gabe Black
434218Ssaidi@eecs.umich.edu#          Andreas Sandberg
444202Sbinkertn@umich.edu
454202Sbinkertn@umich.eduImport('*')
464202Sbinkertn@umich.edu
474202Sbinkertn@umich.eduif env['TARGET_ISA'] == 'null':
484202Sbinkertn@umich.edu    Return()
494202Sbinkertn@umich.edu
504202Sbinkertn@umich.eduSimObject('Ethernet.py')
514202Sbinkertn@umich.edu
524202Sbinkertn@umich.edu# Basic Ethernet infrastructure
534202Sbinkertn@umich.eduSource('etherbus.cc')
544202Sbinkertn@umich.eduSource('etherdevice.cc')
554202Sbinkertn@umich.eduSource('etherdump.cc')
564202Sbinkertn@umich.eduSource('etherint.cc')
574202Sbinkertn@umich.eduSource('etherlink.cc')
58Source('etherpkt.cc')
59Source('ethertap.cc')
60
61Source('pktfifo.cc')
62
63DebugFlag('Ethernet')
64DebugFlag('EthernetCksum')
65DebugFlag('EthernetDMA')
66DebugFlag('EthernetData')
67DebugFlag('EthernetDesc')
68DebugFlag('EthernetEEPROM')
69DebugFlag('EthernetIntr')
70DebugFlag('EthernetPIO')
71DebugFlag('EthernetSM')
72
73# Dist gem5
74Source('dist_iface.cc')
75Source('dist_etherlink.cc')
76Source('tcp_iface.cc')
77
78DebugFlag('DistEthernet')
79DebugFlag('DistEthernetPkt')
80DebugFlag('DistEthernetCmd')
81
82# Ethernet controllers
83Source('i8254xGBe.cc')
84Source('ns_gige.cc')
85Source('sinic.cc')
86
87
88
89CompoundFlag('EthernetAll', [ 'Ethernet', 'EthernetPIO', 'EthernetDMA',
90    'EthernetData' , 'EthernetDesc', 'EthernetIntr', 'EthernetSM',
91    'EthernetCksum', 'EthernetEEPROM' ])
92
93CompoundFlag('EthernetNoData', [ 'Ethernet', 'EthernetPIO', 'EthernetDesc',
94    'EthernetIntr', 'EthernetSM', 'EthernetCksum' ])
95