summaryrefslogtreecommitdiff
path: root/build/SConstruct
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2006-05-09 12:43:01 -0400
committerSteve Reinhardt <stever@eecs.umich.edu>2006-05-09 12:43:01 -0400
commit4758eb151f79233b60147914e6474c78522447f7 (patch)
tree3890d6f04c4e443c715cb08720bc8f619b428613 /build/SConstruct
parent1047215ee58bf2b3df0b5e72f1e97da3891e3ed2 (diff)
downloadgem5-4758eb151f79233b60147914e6474c78522447f7.tar.xz
Print M5 build options for 'scons -h'.
--HG-- extra : convert_revision : 14ef62e513987b89e913e2bf9b8771ee086ed0a0
Diffstat (limited to 'build/SConstruct')
-rw-r--r--build/SConstruct12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/SConstruct b/build/SConstruct
index e1854b1d3..28940fc5a 100644
--- a/build/SConstruct
+++ b/build/SConstruct
@@ -328,6 +328,11 @@ env.Append(BUILDERS = { 'ConfigFile' : config_builder })
# rename base env
base_env = env
+help_text = '''
+Usage: scons [scons options] [build options] [target(s)]
+
+'''
+
for build_dir in build_dirs:
# Make a copy of the default environment to use for this config.
env = base_env.Copy()
@@ -361,6 +366,11 @@ for build_dir in build_dirs:
sticky_opts.Update(env)
nonsticky_opts.Update(env)
+ help_text += "Sticky options for %s:\n" % build_dir \
+ + sticky_opts.GenerateHelpText(env) \
+ + "\nNon-sticky options for %s:\n" % build_dir \
+ + nonsticky_opts.GenerateHelpText(env)
+
# Process option settings.
if not have_fenv and env['USE_FENV']:
@@ -409,6 +419,8 @@ for build_dir in build_dirs:
build_dir = os.path.join(build_dir, 'test', e.Label),
exports = { 'env' : e }, duplicate = False)
+Help(help_text)
+
###################################################
#
# Let SCons do its thing. At this point SCons will use the defined