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

Side by Side Diff: src/scripts/common.sh

Issue 647053: Fix archive_build.sh to work with new build using board subdirs. (Closed)
Patch Set: Created 10 years, 10 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
« no previous file with comments | « src/scripts/archive_build.sh ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Common constants for build scripts 5 # Common constants for build scripts
6 # This must evaluate properly for both /bin/bash and /bin/sh 6 # This must evaluate properly for both /bin/bash and /bin/sh
7 7
8 # All scripts should die on error unless commands are specifically excepted 8 # All scripts should die on error unless commands are specifically excepted
9 # by prefixing with '!' or surrounded by 'set +e' / 'set -e'. 9 # by prefixing with '!' or surrounded by 'set +e' / 'set -e'.
10 # TODO: Re-enable this once shflags is less prone to dying. 10 # TODO: Re-enable this once shflags is less prone to dying.
11 #set -e 11 #set -e
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 DEFAULT_IMG_MIRROR=${CHROMEOS_IMG_MIRROR:-"${DEFAULT_CHROMEOS_SERVER}/ubuntu"} 90 DEFAULT_IMG_MIRROR=${CHROMEOS_IMG_MIRROR:-"${DEFAULT_CHROMEOS_SERVER}/ubuntu"}
91 DEFAULT_IMG_SUITE=${CHROMEOS_IMG_SUITE:-"karmic"} 91 DEFAULT_IMG_SUITE=${CHROMEOS_IMG_SUITE:-"karmic"}
92 92
93 # Default location for chroot 93 # Default location for chroot
94 DEFAULT_CHROOT_DIR=${CHROMEOS_CHROOT_DIR:-"$GCLIENT_ROOT/chroot"} 94 DEFAULT_CHROOT_DIR=${CHROMEOS_CHROOT_DIR:-"$GCLIENT_ROOT/chroot"}
95 95
96 # All output files from build should go under $DEFAULT_BUILD_ROOT, so that 96 # All output files from build should go under $DEFAULT_BUILD_ROOT, so that
97 # they don't pollute the source directory. 97 # they don't pollute the source directory.
98 DEFAULT_BUILD_ROOT=${CHROMEOS_BUILD_ROOT:-"$SRC_ROOT/build"} 98 DEFAULT_BUILD_ROOT=${CHROMEOS_BUILD_ROOT:-"$SRC_ROOT/build"}
99 99
100 # Set up a global ALL_BOARDS value
101 ALL_BOARDS=$(cd ../overlays;ls -1d overlay-* 2>&-|sed 's,overlay-,,g')
102 # Strip CR
103 ALL_BOARDS=$(echo $ALL_BOARDS)
104 # Set a default BOARD
105 #DEFAULT_BOARD=x86-generic # or...
106 DEFAULT_BOARD=$(echo $ALL_BOARDS | awk '{print $NF}')
107
100 # Detect whether we're inside a chroot or not 108 # Detect whether we're inside a chroot or not
101 if [ -e /etc/debian_chroot ] 109 if [ -e /etc/debian_chroot ]
102 then 110 then
103 INSIDE_CHROOT=1 111 INSIDE_CHROOT=1
104 else 112 else
105 INSIDE_CHROOT=0 113 INSIDE_CHROOT=0
106 fi 114 fi
107 115
108 # Directory locations inside the dev chroot 116 # Directory locations inside the dev chroot
109 CHROOT_TRUNK_DIR="/home/$USER/trunk" 117 CHROOT_TRUNK_DIR="/home/$USER/trunk"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 V_RED="\e[31m" 236 V_RED="\e[31m"
229 V_YELLOW="\e[33m" 237 V_YELLOW="\e[33m"
230 238
231 function warn { 239 function warn {
232 echo -e "${V_YELLOW}Warning..: $1${V_VIDOFF}" 240 echo -e "${V_YELLOW}Warning..: $1${V_VIDOFF}"
233 } 241 }
234 242
235 function error { 243 function error {
236 echo -e "${V_RED}Error....: $1${V_VIDOFF}" 244 echo -e "${V_RED}Error....: $1${V_VIDOFF}"
237 } 245 }
OLDNEW
« no previous file with comments | « src/scripts/archive_build.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698