SConscript revision 13391
16157Snate@binkert.org#!python 26157Snate@binkert.org 36157Snate@binkert.org# Copyright (c) 2016, Dresden University of Technology (TU Dresden) 46157Snate@binkert.org# All rights reserved. 56157Snate@binkert.org# 66157Snate@binkert.org# Redistribution and use in source and binary forms, with or without 76157Snate@binkert.org# modification, are permitted provided that the following conditions are 86157Snate@binkert.org# met: 96157Snate@binkert.org# 106157Snate@binkert.org# 1. Redistributions of source code must retain the above copyright notice, 116157Snate@binkert.org# this list of conditions and the following disclaimer. 126157Snate@binkert.org# 136157Snate@binkert.org# 2. Redistributions in binary form must reproduce the above copyright 146157Snate@binkert.org# notice, this list of conditions and the following disclaimer in the 156157Snate@binkert.org# documentation and/or other materials provided with the distribution. 166157Snate@binkert.org# 176157Snate@binkert.org# 3. Neither the name of the copyright holder nor the names of its 186157Snate@binkert.org# contributors may be used to endorse or promote products derived from 196157Snate@binkert.org# this software without specific prior written permission. 206157Snate@binkert.org# 216157Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 226157Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 236157Snate@binkert.org# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 246157Snate@binkert.org# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER 256157Snate@binkert.org# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 266157Snate@binkert.org# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 276157Snate@binkert.org# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 286157Snate@binkert.org# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 296157Snate@binkert.org# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 306157Snate@binkert.org# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 316157Snate@binkert.org# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 328453Snate@binkert.org# 336157Snate@binkert.org# Authors: Christian Menard 346157Snate@binkert.org 356657Snate@binkert.orgImport('env') 366157Snate@binkert.org 378453Snate@binkert.orgenv = env.Clone() 388453Snate@binkert.org 396157Snate@binkert.orggem5_root = env['GEM5_ROOT'] 406157Snate@binkert.org 418492Snilay@cs.wisc.edusystemc_util_dir = gem5_root + '/util/systemc/gem5_within_systemc' 426168Snate@binkert.org 436168Snate@binkert.orgsystemc_src = [] 449219Spower.jg@gmail.comsystemc_src += Install('.', systemc_util_dir + '/sc_gem5_control.cc'), 456157Snate@binkert.orgsystemc_src += Install('.', systemc_util_dir + '/sc_logger.cc'), 466657Snate@binkert.orgsystemc_src += Install('.', systemc_util_dir + '/sc_module.cc'), 476657Snate@binkert.orgsystemc_src += Install('.', systemc_util_dir + '/stats.cc'), 486657Snate@binkert.org 496657Snate@binkert.orgtlm_src = [] 506657Snate@binkert.orgtlm_src += [File('master_transactor.cc')] 516657Snate@binkert.orgtlm_src += [File('sc_ext.cc')] 526657Snate@binkert.orgtlm_src += [File('sc_master_port.cc')] 536657Snate@binkert.orgtlm_src += [File('sc_mm.cc')] 546657Snate@binkert.orgtlm_src += [File('sc_slave_port.cc')] 556657Snate@binkert.orgtlm_src += [File('sim_control.cc')] 566157Snate@binkert.orgtlm_src += [File('slave_transactor.cc')] 576157Snate@binkert.org 586157Snate@binkert.orgtlm = env.Library('gem5_tlm', tlm_src + systemc_src) 596157Snate@binkert.org 609219Spower.jg@gmail.comReturn('tlm') 618453Snate@binkert.org