Deleted Added
sdiff udiff text old ( 9119:a8749b39f1f8 ) new ( 9219:258753d3bc47 )
full compact
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
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# 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),
870 )
871
872# These variables get exported to #defines in config/*.hh (see src/SConscript).
873export_vars += ['USE_FENV', 'SS_COMPATIBLE_FP',
874 'TARGET_ISA', 'CP_ANNOTATE', 'USE_POSIX_CLOCK' ]
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 ---