SConstruct (12244:33af7397d081) | SConstruct (12245:ad6fa75d2aba) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015-2017 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 81 unchanged lines hidden (view full) --- 90from os.path import abspath, basename, dirname, expanduser, normpath 91from os.path import exists, isdir, isfile 92from os.path import join as joinpath, split as splitpath 93 94# SCons includes 95import SCons 96import SCons.Node 97 | 1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015-2017 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 81 unchanged lines hidden (view full) --- 90from os.path import abspath, basename, dirname, expanduser, normpath 91from os.path import exists, isdir, isfile 92from os.path import join as joinpath, split as splitpath 93 94# SCons includes 95import SCons 96import SCons.Node 97 |
98extra_python_paths = [ 99 Dir('src/python').srcnode().abspath, # gem5 includes 100 Dir('ext/ply').srcnode().abspath, # ply is used by several files 101 ] 102 103sys.path[1:1] = extra_python_paths 104 | |
105from m5.util import compareVersions, readCommand 106from m5.util.terminal import get_termcap 107 108help_texts = { 109 "options" : "", 110 "global_vars" : "", 111 "local_vars" : "" 112} --- 74 unchanged lines hidden (view full) --- 187 188main_dict_keys = main.Dictionary().keys() 189 190# Check that we have a C/C++ compiler 191if not ('CC' in main_dict_keys and 'CXX' in main_dict_keys): 192 print "No C++ compiler installed (package g++ on Ubuntu and RedHat)" 193 Exit(1) 194 | 98from m5.util import compareVersions, readCommand 99from m5.util.terminal import get_termcap 100 101help_texts = { 102 "options" : "", 103 "global_vars" : "", 104 "local_vars" : "" 105} --- 74 unchanged lines hidden (view full) --- 180 181main_dict_keys = main.Dictionary().keys() 182 183# Check that we have a C/C++ compiler 184if not ('CC' in main_dict_keys and 'CXX' in main_dict_keys): 185 print "No C++ compiler installed (package g++ on Ubuntu and RedHat)" 186 Exit(1) 187 |
195# add useful python code PYTHONPATH so it can be used by subprocesses 196# as well 197main.AppendENVPath('PYTHONPATH', extra_python_paths) 198 | |
199################################################### 200# 201# Figure out which configurations to set up based on the path(s) of 202# the target(s). 203# 204################################################### 205 206# Find default configuration & binary. --- 1108 unchanged lines hidden --- | 188################################################### 189# 190# Figure out which configurations to set up based on the path(s) of 191# the target(s). 192# 193################################################### 194 195# Find default configuration & binary. --- 1108 unchanged lines hidden --- |