Added build_chrome_browser.py to build the browser only. Tested it briefly but may still have some kinks.
PRESUBMIT=passed
R=asharif,bjanakiraman
DELTA=132 (125 added, 0 deleted, 7 changed)
OCL=45750-p2
RCL=45761-p2
RDATE=2010/12/10 11:01:56
P4 change: 42607145
diff --git a/v14/build_chromeos.py b/v14/build_chromeos.py
index 3968a91..d32c49a 100755
--- a/v14/build_chromeos.py
+++ b/v14/build_chromeos.py
@@ -24,19 +24,28 @@
parser.print_help()
sys.exit(0)
-
+#TODO(raymes): move this to a common utils file.
def ExecuteCommandInChroot(chromeos_root, toolchain_root, command,
return_output=False, chrome_root=""):
"""Executes a command in the chroot."""
+ global cmd_executer
+ cmd_executer = command_executer.GetCommandExecuter()
+
chrome_mount = ""
if chrome_root:
chrome_mount = "--chrome_root=" + chromeos_root + "/" + chrome_root
- argv = [os.path.dirname(os.path.abspath(__file__)) + "/tc_enter_chroot.py",
- "--chromeos_root=" + chromeos_root,
- "--toolchain_root=" + toolchain_root,
- chrome_mount,
- "\n" + command]
- return tc_enter_chroot.Main(argv)
+ if toolchain_root is None:
+ return cmd_executer.RunCommand(chromeos_root +
+ "/src/scripts/enter_chroot.sh %s -- %s"
+ % ("chrome_root=" + chrome_root,
+ command))
+ else:
+ argv = [os.path.dirname(os.path.abspath(__file__)) + "/tc_enter_chroot.py",
+ "--chromeos_root=" + chromeos_root,
+ "--toolchain_root=" + toolchain_root,
+ chrome_mount,
+ "\n" + command]
+ return tc_enter_chroot.Main(argv)
def MakeChroot(chromeos_root, clobber_chroot=False):