| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 PROG=$(basename $0) | 2 PROG=$(basename $0) |
| 3 | 3 |
| 4 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 4 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
| 7 | 7 |
| 8 # Script to build the set of binary packages needed by Chrome OS. It will | 8 # Script to build the set of binary packages needed by Chrome OS. It will |
| 9 # cross compile all of the packages into the given targets root and build | 9 # cross compile all of the packages into the given targets root and build |
| 10 # binary packages as a side-effect. The output packages will be picked up | 10 # binary packages as a side-effect. The output packages will be picked up |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 PACKAGES="${PACKAGES} chromeos-base/autotest-all" | 170 PACKAGES="${PACKAGES} chromeos-base/autotest-all" |
| 171 | 171 |
| 172 # HACK ALERT | 172 # HACK ALERT |
| 173 # Remove autotest deps r321 and earlier as some files have been moved. | 173 # Remove autotest deps r321 and earlier as some files have been moved. |
| 174 # We must force uninstall the old packages or the stale packages will | 174 # We must force uninstall the old packages or the stale packages will |
| 175 # conflict with the new ebuilds. | 175 # conflict with the new ebuilds. |
| 176 # http://codereview.chromium.org/6220003/ | 176 # http://codereview.chromium.org/6220003/ |
| 177 sudo -E ${EMERGE_BOARD_CMD} -C "<=chromeos-base/autotest-deps-0.0.1-r321" | 177 sudo -E ${EMERGE_BOARD_CMD} -C "<=chromeos-base/autotest-deps-0.0.1-r321" |
| 178 sudo -E ${EMERGE_BOARD_CMD} -C "<=chromeos-base/autotest-tests-0.0.1-r335" | 178 sudo -E ${EMERGE_BOARD_CMD} -C "<=chromeos-base/autotest-tests-0.0.1-r335" |
| 179 fi | 179 fi |
| 180 # HACK ALERT |
| 181 # Remove chromeos-base/kernel: http://crosbug.com/11124 |
| 182 # TODO(msb) remove this hack after 02/20/2011 |
| 183 sudo -E ${EMERGE_BOARD_CMD} -C "chromeos-base/kernel" |
| 180 if [[ "${FLAGS_fast}" -eq "${FLAGS_TRUE}" ]]; then | 184 if [[ "${FLAGS_fast}" -eq "${FLAGS_TRUE}" ]]; then |
| 181 # These flags are specific to parallel_emerge | 185 # These flags are specific to parallel_emerge |
| 182 for pkg in ${CROS_WORKON_PKGS}; do | 186 for pkg in ${CROS_WORKON_PKGS}; do |
| 183 EMERGE_FLAGS="${EMERGE_FLAGS} --workon=${pkg}" | 187 EMERGE_FLAGS="${EMERGE_FLAGS} --workon=${pkg}" |
| 184 done | 188 done |
| 185 if [[ "${FLAGS_norebuild}" -eq "${FLAGS_FALSE}" ]]; then | 189 if [[ "${FLAGS_norebuild}" -eq "${FLAGS_FALSE}" ]]; then |
| 186 EMERGE_FLAGS="${EMERGE_FLAGS} --rebuild" | 190 EMERGE_FLAGS="${EMERGE_FLAGS} --rebuild" |
| 187 fi | 191 fi |
| 188 if [[ "${FLAGS_showoutput}" -eq "${FLAGS_TRUE}" ]]; then | 192 if [[ "${FLAGS_showoutput}" -eq "${FLAGS_TRUE}" ]]; then |
| 189 EMERGE_FLAGS="${EMERGE_FLAGS} --show-output" | 193 EMERGE_FLAGS="${EMERGE_FLAGS} --show-output" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 214 | 218 |
| 215 # Update the remainder of the packages. | 219 # Update the remainder of the packages. |
| 216 eretry ${EMERGE_BOARD_CMD} -uDNv ${EMERGE_FLAGS} ${PACKAGES} | 220 eretry ${EMERGE_BOARD_CMD} -uDNv ${EMERGE_FLAGS} ${PACKAGES} |
| 217 fi | 221 fi |
| 218 fi | 222 fi |
| 219 | 223 |
| 220 | 224 |
| 221 echo "Builds complete" | 225 echo "Builds complete" |
| 222 print_time_elapsed | 226 print_time_elapsed |
| 223 echo "Done" | 227 echo "Done" |
| OLD | NEW |