From ec2708c83a89ffdb7839382cca3e26797960c956 Mon Sep 17 00:00:00 2001 From: Ken Mixter Date: Mon, 28 Jun 2010 18:41:22 -0700 Subject: [PATCH] Add --nousepkg option for build_packages to sbt Review URL: http://codereview.chromium.org/2810035 --- sync_build_test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sync_build_test.sh b/sync_build_test.sh index 1b61ffdec4..ce19479e92 100755 --- a/sync_build_test.sh +++ b/sync_build_test.sh @@ -79,6 +79,7 @@ DEFINE_string test "" \ DEFINE_string top "" \ "Root directory of your checkout (defaults to determining from your cwd)" DEFINE_boolean withdev ${FLAGS_TRUE} "Build development packages" +DEFINE_boolean usepkg ${FLAGS_TRUE} "Use binary packages" DEFINE_boolean unittest ${FLAGS_TRUE} "Run unit tests" @@ -516,10 +517,15 @@ function main() { if [[ ${FLAGS_build_autotest} -eq ${FLAGS_TRUE} ]]; then build_autotest_param="--withautotest" fi + local pkg_param="" + if [[ ${FLAGS_usepkg} -eq ${FLAGS_FALSE} ]]; then + pkg_param="--nousepkg" + fi run_phase_in_chroot "Building packages" \ ./build_packages "${board_param}" \ - ${jobs_param} ${withdev_param} ${build_autotest_param} + ${jobs_param} ${withdev_param} ${build_autotest_param} \ + ${pkg_param} run_phase_in_chroot "Building unit tests" ./build_tests.sh ${board_param} if [[ "${FLAGS_board}" == "x86-generic" ]]; then