SConscript revision 10860
12929Sktlim@umich.edu# -*- mode:python -*-
22929Sktlim@umich.edu
32932Sktlim@umich.edu# Copyright (c) 2015 ARM Limited
42929Sktlim@umich.edu# All rights reserved.
52929Sktlim@umich.edu#
62929Sktlim@umich.edu# The license below extends only to copyright in the software and shall
72929Sktlim@umich.edu# not be construed as granting a license to any other intellectual
82929Sktlim@umich.edu# property including but not limited to intellectual property relating
92929Sktlim@umich.edu# to a hardware implementation of the functionality of the software
102929Sktlim@umich.edu# licensed hereunder.  You may use the software subject to the license
112929Sktlim@umich.edu# terms below provided that you ensure that this notice is replicated
122929Sktlim@umich.edu# unmodified and in its entirety in all distributions of the software,
132929Sktlim@umich.edu# modified or unmodified, in source code or in binary form.
142929Sktlim@umich.edu#
152929Sktlim@umich.edu# Redistribution and use in source and binary forms, with or without
162929Sktlim@umich.edu# modification, are permitted provided that the following conditions are
172929Sktlim@umich.edu# met: redistributions of source code must retain the above copyright
182929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer;
192929Sktlim@umich.edu# redistributions in binary form must reproduce the above copyright
202929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer in the
212929Sktlim@umich.edu# documentation and/or other materials provided with the distribution;
222929Sktlim@umich.edu# neither the name of the copyright holders nor the names of its
232929Sktlim@umich.edu# contributors may be used to endorse or promote products derived from
242929Sktlim@umich.edu# this software without specific prior written permission.
252929Sktlim@umich.edu#
262929Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
272929Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
282932Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
292932Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
302932Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
312929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
322929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
332929Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
342929Sktlim@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
352929Sktlim@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
362929Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
372929Sktlim@umich.edu#
382929Sktlim@umich.edu# Authors: Andreas Sandberg
392929Sktlim@umich.edu
402929Sktlim@umich.eduImport('*')
412929Sktlim@umich.edu
422929Sktlim@umich.eduif not (env['USE_KVM'] and env['TARGET_ISA'] == 'arm'):
432929Sktlim@umich.edu    Return()
442929Sktlim@umich.edu
452929Sktlim@umich.eduimport platform
462929Sktlim@umich.eduhost_isa = platform.machine()
472929Sktlim@umich.edu
482929Sktlim@umich.eduSimObject('KvmGic.py')
492929Sktlim@umich.eduSource('gic.cc')
502929Sktlim@umich.edu
512929Sktlim@umich.eduSimObject('BaseArmKvmCPU.py')
522929Sktlim@umich.eduSource('base_cpu.cc')
532929Sktlim@umich.edu
542929Sktlim@umich.eduif host_isa == "armv7l":
552929Sktlim@umich.edu    SimObject('ArmKvmCPU.py')
562929Sktlim@umich.edu    Source('arm_cpu.cc')
572929Sktlim@umich.eduelif host_isa == "aarch64":
582929Sktlim@umich.edu    SimObject('ArmV8KvmCPU.py')
592929Sktlim@umich.edu    Source('armv8_cpu.cc')
602929Sktlim@umich.edu