OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 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 | 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 set -e | 7 set -e |
8 | 8 |
9 build=1 | 9 build=1 |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 if [ -z $BOARD_NAME ] | 29 if [ -z $BOARD_NAME ] |
30 then | 30 then |
31 echo "No board specified in /etc/lsb-release" | 31 echo "No board specified in /etc/lsb-release" |
32 exit 1 | 32 exit 1 |
33 fi | 33 fi |
34 | 34 |
35 mount -o remount,rw / | 35 mount -o remount,rw / |
36 mkdir -p /etc/make.profile | 36 mkdir -p /etc/make.profile |
37 | 37 |
| 38 # Delete the local binary package cache. |
| 39 sudo rm -rf /usr/portage/packages |
| 40 |
38 if [ $build == 1 ] ; then | 41 if [ $build == 1 ] ; then |
39 echo "Building $package_name" | 42 echo "Building $package_name" |
40 ESCAPED_PACKAGE=$(python -c \ | 43 ESCAPED_PACKAGE=$(python -c \ |
41 "import urllib; print urllib.quote('''$package_name''')") | 44 "import urllib; print urllib.quote('''$package_name''')") |
42 ESCAPED_BOARD=$(python -c \ | 45 ESCAPED_BOARD=$(python -c \ |
43 "import urllib; print urllib.quote('''${BOARD_NAME}''')") | 46 "import urllib; print urllib.quote('''${BOARD_NAME}''')") |
44 | 47 |
45 wget $DEVKIT_URL/build \ | 48 wget $DEVKIT_URL/build \ |
46 --post-data="pkg=${ESCAPED_PACKAGE}&board=${ESCAPED_BOARD}" | 49 --post-data="pkg=${ESCAPED_PACKAGE}&board=${ESCAPED_BOARD}" |
47 fi | 50 fi |
(...skipping 12 matching lines...) Expand all Loading... |
60 fi | 63 fi |
61 fi | 64 fi |
62 | 65 |
63 echo "Emerging $package_name" | 66 echo "Emerging $package_name" |
64 | 67 |
65 export PORTAGE_BINHOST="${DEVKIT_URL}/static/pkgroot/${BOARD_NAME}/packages" | 68 export PORTAGE_BINHOST="${DEVKIT_URL}/static/pkgroot/${BOARD_NAME}/packages" |
66 export PORTAGE_TMPDIR=/tmp | 69 export PORTAGE_TMPDIR=/tmp |
67 | 70 |
68 # Accept keywords only for stable ebuilds by default. | 71 # Accept keywords only for stable ebuilds by default. |
69 if [ -z "$ACCEPT_KEYWORDS" ] ; then | 72 if [ -z "$ACCEPT_KEYWORDS" ] ; then |
70 ACCEPT_KEYWORDS='arm x86' | 73 ACCEPT_KEYWORDS='arm x86 ~arm ~x86' |
71 fi | 74 fi |
72 export ACCEPT_KEYWORDS | 75 export ACCEPT_KEYWORDS |
73 | 76 |
74 FEATURES="-sandbox" emerge --getbinpkg --usepkgonly "$@" | 77 FEATURES="-sandbox" emerge --getbinpkg --usepkgonly "$@" |
OLD | NEW |