SConscript revision 10391
114270Sgabeblack@google.com# -*- mode:python -*-
214270Sgabeblack@google.com
314270Sgabeblack@google.com# Copyright (c) 2014 ARM Limited
414270Sgabeblack@google.com# All rights reserved.
514270Sgabeblack@google.com#
614270Sgabeblack@google.com# The license below extends only to copyright in the software and shall
714270Sgabeblack@google.com# not be construed as granting a license to any other intellectual
814270Sgabeblack@google.com# property including but not limited to intellectual property relating
914270Sgabeblack@google.com# to a hardware implementation of the functionality of the software
1014270Sgabeblack@google.com# licensed hereunder.  You may use the software subject to the license
1114270Sgabeblack@google.com# terms below provided that you ensure that this notice is replicated
1214270Sgabeblack@google.com# unmodified and in its entirety in all distributions of the software,
1314270Sgabeblack@google.com# modified or unmodified, in source code or in binary form.
1414270Sgabeblack@google.com#
1514270Sgabeblack@google.com# Redistribution and use in source and binary forms, with or without
1614270Sgabeblack@google.com# modification, are permitted provided that the following conditions are
1714270Sgabeblack@google.com# met: redistributions of source code must retain the above copyright
1814270Sgabeblack@google.com# notice, this list of conditions and the following disclaimer;
1914270Sgabeblack@google.com# redistributions in binary form must reproduce the above copyright
2014270Sgabeblack@google.com# notice, this list of conditions and the following disclaimer in the
2114270Sgabeblack@google.com# documentation and/or other materials provided with the distribution;
2214270Sgabeblack@google.com# neither the name of the copyright holders nor the names of its
2314270Sgabeblack@google.com# contributors may be used to endorse or promote products derived from
2414270Sgabeblack@google.com# this software without specific prior written permission.
2514270Sgabeblack@google.com#
2614270Sgabeblack@google.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2714270Sgabeblack@google.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2814270Sgabeblack@google.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2914270Sgabeblack@google.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
3014270Sgabeblack@google.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3114270Sgabeblack@google.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3214270Sgabeblack@google.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3314270Sgabeblack@google.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3414270Sgabeblack@google.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3514270Sgabeblack@google.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3614270Sgabeblack@google.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3714270Sgabeblack@google.com#
3814270Sgabeblack@google.com# Authors: Andreas Sandberg
3914270Sgabeblack@google.com
4014270Sgabeblack@google.comImport('*')
4114270Sgabeblack@google.com
4214270Sgabeblack@google.comif env['TARGET_ISA'] == 'null':
4314270Sgabeblack@google.com    Return()
4414270Sgabeblack@google.com
4514270Sgabeblack@google.comSimObject('VirtIO.py')
4614270Sgabeblack@google.comSimObject('VirtIOConsole.py')
4714270Sgabeblack@google.comSimObject('VirtIOBlock.py')
4814270Sgabeblack@google.comSimObject('VirtIO9P.py')
4914270Sgabeblack@google.com
5014270Sgabeblack@google.comSource('base.cc')
5114270Sgabeblack@google.comSource('pci.cc')
5214270Sgabeblack@google.comSource('console.cc')
5314270Sgabeblack@google.comSource('block.cc')
5414270Sgabeblack@google.comSource('fs9p.cc')
5514270Sgabeblack@google.com
5614270Sgabeblack@google.comDebugFlag('VIO', 'VirtIO base functionality')
5714270Sgabeblack@google.comDebugFlag('VIOPci', 'VirtIO PCI transport')
5814270Sgabeblack@google.comDebugFlag('VIOConsole', 'VirtIO console device')
5914270Sgabeblack@google.comDebugFlag('VIOBlock', 'VirtIO block device')
6014270Sgabeblack@google.comDebugFlag('VIO9P', 'General 9p over VirtIO debugging')
6114270Sgabeblack@google.comDebugFlag('VIO9PData', 'Dump data in VirtIO 9p connections')
6214270Sgabeblack@google.com