SConstruct (9119:a8749b39f1f8) | SConstruct (9219:258753d3bc47) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2011 Advanced Micro Devices, Inc. 4# Copyright (c) 2009 The Hewlett-Packard Development Company 5# Copyright (c) 2004-2005 The Regents of The University of Michigan 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms, with or without --- 102 unchanged lines hidden (view full) --- 111# SCons includes 112import SCons 113import SCons.Node 114 115extra_python_paths = [ 116 Dir('src/python').srcnode().abspath, # gem5 includes 117 Dir('ext/ply').srcnode().abspath, # ply is used by several files 118 ] | 1# -*- mode:python -*- 2 3# Copyright (c) 2011 Advanced Micro Devices, Inc. 4# Copyright (c) 2009 The Hewlett-Packard Development Company 5# Copyright (c) 2004-2005 The Regents of The University of Michigan 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms, with or without --- 102 unchanged lines hidden (view full) --- 111# SCons includes 112import SCons 113import SCons.Node 114 115extra_python_paths = [ 116 Dir('src/python').srcnode().abspath, # gem5 includes 117 Dir('ext/ply').srcnode().abspath, # ply is used by several files 118 ] |
119 | 119 |
120sys.path[1:1] = extra_python_paths 121 122from m5.util import compareVersions, readCommand 123from m5.util.terminal import get_termcap 124 125help_texts = { 126 "options" : "", 127 "global_vars" : "", --- 702 unchanged lines hidden (view full) --- 830# value becomes sticky). 831sticky_vars = Variables(args=ARGUMENTS) 832Export('sticky_vars') 833 834# Sticky variables that should be exported 835export_vars = [] 836Export('export_vars') 837 | 120sys.path[1:1] = extra_python_paths 121 122from m5.util import compareVersions, readCommand 123from m5.util.terminal import get_termcap 124 125help_texts = { 126 "options" : "", 127 "global_vars" : "", --- 702 unchanged lines hidden (view full) --- 830# value becomes sticky). 831sticky_vars = Variables(args=ARGUMENTS) 832Export('sticky_vars') 833 834# Sticky variables that should be exported 835export_vars = [] 836Export('export_vars') 837 |
838# For Ruby 839all_protocols = [] 840Export('all_protocols') 841protocol_dirs = [] 842Export('protocol_dirs') 843slicc_includes = [] 844Export('slicc_includes') 845 |
|
838# Walk the tree and execute all SConsopts scripts that wil add to the 839# above variables 840if not GetOption('verbose'): 841 print "Reading SConsopts" 842for bdir in [ base_dir ] + extras_dir_list: 843 if not isdir(bdir): 844 print "Error: directory '%s' does not exist" % bdir 845 Exit(1) --- 16 unchanged lines hidden (view full) --- 862 'Make floating-point results compatible with SimpleScalar', 863 False), 864 BoolVariable('USE_SSE2', 865 'Compile for SSE2 (-msse2) to get IEEE FP on x86 hosts', 866 False), 867 BoolVariable('USE_POSIX_CLOCK', 'Use POSIX Clocks', have_posix_clock), 868 BoolVariable('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv), 869 BoolVariable('CP_ANNOTATE', 'Enable critical path annotation capability', False), | 846# Walk the tree and execute all SConsopts scripts that wil add to the 847# above variables 848if not GetOption('verbose'): 849 print "Reading SConsopts" 850for bdir in [ base_dir ] + extras_dir_list: 851 if not isdir(bdir): 852 print "Error: directory '%s' does not exist" % bdir 853 Exit(1) --- 16 unchanged lines hidden (view full) --- 870 'Make floating-point results compatible with SimpleScalar', 871 False), 872 BoolVariable('USE_SSE2', 873 'Compile for SSE2 (-msse2) to get IEEE FP on x86 hosts', 874 False), 875 BoolVariable('USE_POSIX_CLOCK', 'Use POSIX Clocks', have_posix_clock), 876 BoolVariable('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv), 877 BoolVariable('CP_ANNOTATE', 'Enable critical path annotation capability', False), |
878 EnumVariable('PROTOCOL', 'Coherence protocol for Ruby', 'None', 879 all_protocols), |
|
870 ) 871 872# These variables get exported to #defines in config/*.hh (see src/SConscript). 873export_vars += ['USE_FENV', 'SS_COMPATIBLE_FP', | 880 ) 881 882# These variables get exported to #defines in config/*.hh (see src/SConscript). 883export_vars += ['USE_FENV', 'SS_COMPATIBLE_FP', |
874 'TARGET_ISA', 'CP_ANNOTATE', 'USE_POSIX_CLOCK' ] | 884 'TARGET_ISA', 'CP_ANNOTATE', 'USE_POSIX_CLOCK', 'PROTOCOL', 885 ] |
875 876################################################### 877# 878# Define a SCons builder for configuration flag headers. 879# 880################################################### 881 882# This function generates a config header file that #defines the --- 181 unchanged lines hidden --- | 886 887################################################### 888# 889# Define a SCons builder for configuration flag headers. 890# 891################################################### 892 893# This function generates a config header file that #defines the --- 181 unchanged lines hidden --- |