Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: chromeos/scripts/build_packages

Issue 3571015: Added support for boards with only private overlays. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromiumos-overlay.git
Patch Set: Centralized board primary overlay logic in a call to cros_overlay_list Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chromeos/scripts/setup_board » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 # without the jobs flag. 103 # without the jobs flag.
104 FLAGS_retries=1 104 FLAGS_retries=1
105 fi 105 fi
106 fi 106 fi
107 107
108 if [[ "${FLAGS_withdebug}" -eq "${FLAGS_FALSE}" ]]; then 108 if [[ "${FLAGS_withdebug}" -eq "${FLAGS_FALSE}" ]]; then
109 export USE="${USE} -cros-debug" 109 export USE="${USE} -cros-debug"
110 fi 110 fi
111 111
112 BOARD=$(echo "${FLAGS_board}" |cut -d '_' -f 1) 112 BOARD=$(echo "${FLAGS_board}" |cut -d '_' -f 1)
113 BOARD_OVERLAY="${SRC_ROOT}/overlays/overlay-${BOARD}" 113 BOARD_OVERLAY=$($SCRIPTS_DIR/bin/cros_overlay_list \
114 --board "$BOARD" \
115 --primary_only)
114 TC_ARCH=$(awk -F'-' '{ print $1 }' < "${BOARD_OVERLAY}/toolchain.conf") 116 TC_ARCH=$(awk -F'-' '{ print $1 }' < "${BOARD_OVERLAY}/toolchain.conf")
115 case "${TC_ARCH}" in 117 case "${TC_ARCH}" in
116 arm*) 118 arm*)
117 ARCH="arm" 119 ARCH="arm"
118 ;; 120 ;;
119 *86) 121 *86)
120 ARCH="x86" 122 ARCH="x86"
121 ;; 123 ;;
122 *) 124 *)
123 error "Unable to determine ARCH from toolchain: ${FLAGS_board}" 125 error "Unable to determine ARCH from toolchain: ${FLAGS_board}"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 246
245 # Update the remainder of the packages. 247 # Update the remainder of the packages.
246 eretry ${EMERGE_BOARD_CMD} -uDNv ${EMERGE_FLAGS} ${PACKAGES} 248 eretry ${EMERGE_BOARD_CMD} -uDNv ${EMERGE_FLAGS} ${PACKAGES}
247 fi 249 fi
248 fi 250 fi
249 251
250 252
251 echo "Builds complete" 253 echo "Builds complete"
252 print_time_elapsed 254 print_time_elapsed
253 echo "Done" 255 echo "Done"
OLDNEW
« no previous file with comments | « no previous file | chromeos/scripts/setup_board » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698