Move options files from <build_dir>/build_options to build_options/<build_dir>.
authorSteve Reinhardt <stever@eecs.umich.edu>
Wed, 31 Aug 2005 04:19:37 +0000 (00:19 -0400)
committerSteve Reinhardt <stever@eecs.umich.edu>
Wed, 31 Aug 2005 04:19:37 +0000 (00:19 -0400)
build/SConstruct:
    Move options file from <build_dir>/build_options to build_options/<build_dir>.

--HG--
extra : convert_revision : 0363f79ef5c9c157d9018fcae9c5e055e38e552d

build/SConstruct
build/build_options/ALPHA_FS [new file with mode: 0644]
build/build_options/ALPHA_FS_TL [new file with mode: 0644]
build/build_options/ALPHA_SE [new file with mode: 0644]

index f300141541fa16d6db6082ad19e054abca2d385e..2aac283797a21e0185a6f4cb7b1f6aaab5177ae7 100644 (file)
@@ -146,12 +146,6 @@ for t in my_targets:
     if dir not in build_dirs:
         build_dirs.append(dir)
 
-# Make a first pass to verify that build dirs are valid
-for build_dir in build_dirs:
-    if not os.path.isdir(build_dir):
-        print "Error: build directory", build_dir, "does not exist."
-        Exit(1)
-
 ###################################################
 #
 # Set up the default build environment.  This environment is copied
@@ -256,7 +250,9 @@ for build_dir in build_dirs:
     # Make a copy of the default environment to use for this config.
     env = base_env.Copy()
     # Set env according to the build directory config.
-    options_file = os.path.join(build_dir, 'build_options')
+    options_file = os.path.join('build_options', build_dir)
+    if not os.path.isfile(options_file):
+        print "Options file %s not found, using defaults." % options_file
     opts = Options(options_file, ARGUMENTS)
     opts.AddOptions(
         EnumOption('TARGET_ISA', 'Target ISA', 'alpha', ('alpha')),
diff --git a/build/build_options/ALPHA_FS b/build/build_options/ALPHA_FS
new file mode 100644 (file)
index 0000000..11c08ae
--- /dev/null
@@ -0,0 +1,7 @@
+FULL_SYSTEM = 1
+ALPHA_TLASER = 0
+NO_FAST_ALLOC = 0
+EFENCE = 0
+SS_COMPATIBLE_FP = 0
+STATS_BINNING = 1
+USE_MYSQL = 1
diff --git a/build/build_options/ALPHA_FS_TL b/build/build_options/ALPHA_FS_TL
new file mode 100644 (file)
index 0000000..59436f8
--- /dev/null
@@ -0,0 +1,7 @@
+FULL_SYSTEM = 1
+ALPHA_TLASER = 1
+NO_FAST_ALLOC = 0
+EFENCE = 0
+SS_COMPATIBLE_FP = 0
+STATS_BINNING = 1
+USE_MYSQL = 1
diff --git a/build/build_options/ALPHA_SE b/build/build_options/ALPHA_SE
new file mode 100644 (file)
index 0000000..810c641
--- /dev/null
@@ -0,0 +1,7 @@
+FULL_SYSTEM = 0
+ALPHA_TLASER = 0
+NO_FAST_ALLOC = 0
+EFENCE = 0
+SS_COMPATIBLE_FP = 1
+STATS_BINNING = 1
+USE_MYSQL = 1