OLD | NEW |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Script to build the set of binary packages needed by Chrome OS. It will | 7 # Script to build the set of binary packages needed by Chrome OS. It will |
8 # cross compile all of the packages into the given targets root and build | 8 # cross compile all of the packages into the given targets root and build |
9 # binary packages as a side-effect. The output packages will be picked up | 9 # binary packages as a side-effect. The output packages will be picked up |
10 # by the build_image script to put together a bootable Chrome OS image. | 10 # by the build_image script to put together a bootable Chrome OS image. |
11 | 11 |
12 # Load common CrOS utilities. Inside the chroot this file is installed in | 12 # Load common CrOS utilities. Inside the chroot this file is installed in |
13 # /usr/lib/crosutils. Outside the chroot we find it relative to the script's | 13 # /usr/lib/crosutils. Outside the chroot we find it relative to the script's |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
179 if [[ -n "${CHROME_ORIGIN}" ]]; then | 179 if [[ -n "${CHROME_ORIGIN}" ]]; then |
180 CROS_WORKON_PKGS="${CROS_WORKON_PKGS} chromeos-base/chromeos-chrome" | 180 CROS_WORKON_PKGS="${CROS_WORKON_PKGS} chromeos-base/chromeos-chrome" |
181 fi | 181 fi |
182 | 182 |
183 PACKAGES="chromeos-base/chromeos" | 183 PACKAGES="chromeos-base/chromeos" |
184 if [[ "${FLAGS_withdev}" -eq "${FLAGS_TRUE}" ]]; then | 184 if [[ "${FLAGS_withdev}" -eq "${FLAGS_TRUE}" ]]; then |
185 PACKAGES="${PACKAGES} chromeos-base/chromeos-dev" | 185 PACKAGES="${PACKAGES} chromeos-base/chromeos-dev" |
186 fi | 186 fi |
187 if [[ "${FLAGS_withfactory}" -eq "${FLAGS_TRUE}" ]]; then | 187 if [[ "${FLAGS_withfactory}" -eq "${FLAGS_TRUE}" ]]; then |
188 PACKAGES="${PACKAGES} chromeos-base/chromeos-factoryinstall" | 188 PACKAGES="${PACKAGES} chromeos-base/chromeos-factoryinstall" |
189 PACKAGES="${PACKAGES} chromeos-base/factorytest-init" | |
davidjames
2011/03/18 00:03:12
Could you split this into a separate CL? We need t
| |
189 fi | 190 fi |
190 if [[ "${FLAGS_withtest}" -eq "${FLAGS_TRUE}" ]]; then | 191 if [[ "${FLAGS_withtest}" -eq "${FLAGS_TRUE}" ]]; then |
191 PACKAGES="${PACKAGES} chromeos-base/chromeos-test" | 192 PACKAGES="${PACKAGES} chromeos-base/chromeos-test" |
192 fi | 193 fi |
193 if [[ "${FLAGS_withautotest}" -eq "${FLAGS_TRUE}" ]]; then | 194 if [[ "${FLAGS_withautotest}" -eq "${FLAGS_TRUE}" ]]; then |
194 PACKAGES="${PACKAGES} chromeos-base/autotest-all" | 195 PACKAGES="${PACKAGES} chromeos-base/autotest-all" |
195 fi | 196 fi |
196 # HACK ALERT | 197 # HACK ALERT |
197 # Remove chromeos-base/kernel: http://crosbug.com/11124 | 198 # Remove chromeos-base/kernel: http://crosbug.com/11124 |
198 # TODO(msb): remove this hack after 02/20/2011 | 199 # TODO(msb): remove this hack after 02/20/2011 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
239 | 240 |
240 # Update the remainder of the packages. | 241 # Update the remainder of the packages. |
241 eretry ${EMERGE_BOARD_CMD} -uDNv ${EMERGE_FLAGS} ${PACKAGES} | 242 eretry ${EMERGE_BOARD_CMD} -uDNv ${EMERGE_FLAGS} ${PACKAGES} |
242 fi | 243 fi |
243 fi | 244 fi |
244 | 245 |
245 | 246 |
246 echo "Builds complete" | 247 echo "Builds complete" |
247 print_time_elapsed | 248 print_time_elapsed |
248 echo "Done" | 249 echo "Done" |
OLD | NEW |