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 # Load common constants. This should be the first executable line. | 7 # Load common constants. This should be the first executable line. |
8 # The path to common.sh should be relative to your script's location. | 8 # The path to common.sh should be relative to your script's location. |
9 . "$(dirname "$0")/common.sh" | 9 . "$(dirname "$0")/common.sh" |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 if [ $FLAGS_stable -eq $FLAGS_TRUE ] | 53 if [ $FLAGS_stable -eq $FLAGS_TRUE ] |
54 then | 54 then |
55 # Passed to copy_chrome_zip.sh to get stable version of the browser | 55 # Passed to copy_chrome_zip.sh to get stable version of the browser |
56 export GET_STABLE_CHROME=1 | 56 export GET_STABLE_CHROME=1 |
57 fi | 57 fi |
58 | 58 |
59 if [ $FLAGS_new_build -eq $FLAGS_TRUE ]; then | 59 if [ $FLAGS_new_build -eq $FLAGS_TRUE ]; then |
60 # chromiumos-build works out the build order for itself. | 60 # chromiumos-build works out the build order for itself. |
61 PACKAGES='dh-chromeos libchrome libchromeos' | 61 PACKAGES='dh-chromeos libchrome libchromeos' |
62 for PKG in $PLATFORM_DIRS $THIRD_PARTY_PACKAGES; do | 62 for PKG in $PLATFORM_DIRS $THIRD_PARTY_PACKAGES; do |
63 PACKAGES="$PACKAGES ${PKG%/*}" | 63 # Handle some special-case naming. |
| 64 case $PKG in |
| 65 e2fsprogs/files) |
| 66 PACKAGES="$PACKAGES e4fsprogs-git" |
| 67 ;; |
| 68 ibus-anthy|ibus-chewing|ibus-hangul) |
| 69 # These are difficult to cross-build right now, and we can live |
| 70 # without them temporarily. |
| 71 if [ "$FLAGS_architecture" = i386 ]; then |
| 72 PACKAGES="$PACKAGES ${PKG%/*}" |
| 73 else |
| 74 echo "WARNING: Skipping $PKG on $FLAGS_architecture" |
| 75 fi |
| 76 ;; |
| 77 *) |
| 78 PACKAGES="$PACKAGES ${PKG%/*}" |
| 79 ;; |
| 80 esac |
64 done | 81 done |
65 verbose chromiumos-build -a "$FLAGS_architecture" --apt-source $PACKAGES | 82 verbose chromiumos-build -a "$FLAGS_architecture" --apt-source $PACKAGES |
66 else | 83 else |
67 # Build dh-chromeos really first. Some of third_party needs it. | 84 # Build dh-chromeos really first. Some of third_party needs it. |
68 echo "Building package dh-chromeos..." | 85 echo "Building package dh-chromeos..." |
69 cd "$PLATFORM_DIR/dh-chromeos" | 86 cd "$PLATFORM_DIR/dh-chromeos" |
70 ./make_pkg.sh | 87 ./make_pkg.sh |
71 cd - | 88 cd - |
72 | 89 |
73 # Build third_party packages first, since packages and libs depend on them. | 90 # Build third_party packages first, since packages and libs depend on them. |
(...skipping 21 matching lines...) Expand all Loading... |
95 for i in $PLATFORM_DIRS | 112 for i in $PLATFORM_DIRS |
96 do | 113 do |
97 echo "Building package ${i}..." | 114 echo "Building package ${i}..." |
98 cd "$PLATFORM_DIR/$i" | 115 cd "$PLATFORM_DIR/$i" |
99 ./make_pkg.sh | 116 ./make_pkg.sh |
100 cd - | 117 cd - |
101 done | 118 done |
102 fi | 119 fi |
103 | 120 |
104 echo "All packages built." | 121 echo "All packages built." |
OLD | NEW |