Changed ExecuteCommandInChroot to take in extra parameters for additional
mount points.
Changed the order of parameters to the same function.
Changed build_tc.py to pass --oneshot all the way down to portage.
Changed tc_enter_chroot.py to take in toolchain_root as an optional parameter.
By default it only mounts the version_dir, which is where it resides.
Changed uses of ExecuteCommandInChroot to the new order.
Changed build_benchmarks.py to not take in toolchain_root. It now takes in
--third_party which is the third_party dir where CPU benchmarks reside.
Changed tc_enter_chroot.py to take in an optional --third_party parameter.
By default it mounts __file__/../../../third_party.
Changed build_chrome_browser.py to add a flags.txt file in the image dir.
Fixed a bug in tc_enter_chroot.py (sys.argv[0] was used instead of __file__).
Fixed handling of command line parameters of build_chrome_browser.py.
build_benchmarks.py, build_chrome_browser.py, run_tests.py and run_dejagnu.py
now use argv instead of sys.argv.
build_chromeos.py now adds a file called flags.txt in the build dir of
the image containing the cxxflags, cflags and ldflags used during the build.
build_chromeos.py now takes an additional optional argument (label) that can be
used to label dirs containing the image.
PRESUBMIT=passed
R=bjanakiraman,raymes
DELTA=191 (104 added, 16 deleted, 71 changed)
OCL=49844-p2
RCL=50076-p2
RDATE=2011/03/16 14:53:04
P4 change: 42618812
diff --git a/v14/build_tc.py b/v14/build_tc.py
index 60a03b7..ef48f36 100755
--- a/v14/build_tc.py
+++ b/v14/build_tc.py
@@ -111,7 +111,7 @@
build_chromeos.MakeChroot(options.chromeos_root)
- portage_flags = ""
+ portage_flags = "--oneshot"
if options.binary == True:
# FIXME(asharif): This should be using --usepkg but that was not working.
portage_flags = "--usepkgonly"
@@ -215,10 +215,10 @@
command = " -- sudo " + env
if uninstall == True:
- command += " crossdev " + tflag + target
+ command += "yes | crossdev " + tflag + target
retval = build_chromeos.ExecuteCommandInChroot(chromeos_root,
- toolchain_root,
- command)
+ command,
+ toolchain_root)
return retval
if incremental_component == "binutils":