build_tc.py now uses a different default output directory. The default
output dir now is gcctools/output/
PRESUBMIT=passed
R=raymes,bjanakiraman
DELTA=6 (3 added, 0 deleted, 3 changed)
OCL=46121-p2
RCL=46124-p2
RDATE=2010/12/22 16:10:55
P4 change: 42607578
diff --git a/v14/build_tc.py b/v14/build_tc.py
index a488cf6..1a775b4 100755
--- a/v14/build_tc.py
+++ b/v14/build_tc.py
@@ -57,8 +57,8 @@
help="Additional options that should be passed on to"
"the setup_chromeos script.")
parser.add_option("-o", "--output", dest="output",
- default=rootdir + "/output",
- help="The output directory where logs,pkgs, etc. go.")
+ help="The output directory where logs,pkgs, etc. go. "
+ "The default is the toolchain_root/output")
options = parser.parse_args(argv)[0]
@@ -89,7 +89,10 @@
sc_args.append(options.setup_chromeos_options)
setup_chromeos.Main(sc_args)
- output = options.output
+ if options.output is None:
+ output = options.toolchain_root + "/output"
+ else:
+ output = options.output
if output.startswith("/") == False:
output = os.getcwd() + "/" + output