OLD | NEW |
---|---|
(Empty) | |
1 #!/bin/bash | |
2 | |
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | |
5 # found in the LICENSE file. | |
6 | |
7 set -e | |
8 | |
9 DEVKIT_URL=$(grep ^CHROMEOS_DEVSERVER /etc/lsb-release | cut -d = -f 2-) | |
10 BOARD_NAME=$(grep ^CHROMEOS_RELEASE_BOARD $dir/etc/lsb-release | cut -d = -f 2-) | |
11 | |
12 if [ -z $DEVKIT_URL ] | |
13 then | |
14 echo "No devkit server specified in /etc/lsb-release" | |
15 exit 1 | |
16 fi | |
17 | |
18 if [ -z $BOARD_NAME ] | |
19 then | |
20 echo "No board specified in /etc/lsb-release" | |
21 exit 1 | |
22 fi | |
23 | |
24 mount -o remount,rw / | |
25 mkdir -p /etc/make.profile | |
26 | |
27 echo "Building $1" | |
28 ESCAPED_PACKAGE=$(python -c "import urllib; print urllib.quote('''$1''')") | |
29 ESCAPED_BOARD=$(python -c "import urllib; print urllib.quote('''${BOARD_NAME}''' )") | |
adlr
2010/03/03 05:07:26
put a \ after, say, -c, to wrap to 80 chars. also
| |
30 wget $DEVKIT_URL/build --post-data="pkg=${ESCAPED_PACKAGE}&board=${ESCAPED_BOARD }" | |
31 | |
32 echo "Emerging $1" | |
33 | |
34 export PORTAGE_BINHOST="${DEVKIT_URL}/static/pkgroot/${BOARD_NAME}/packages" | |
35 export PORTAGE_TMPDIR=/tmp | |
36 export ACCEPT_KEYWORDS=x86 | |
37 | |
38 emerge --getbinpkg --usepkgonly $1 | |
OLD | NEW |