OLD | NEW |
1 # Copyright (c) 2010 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. |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 #DEFAULT_BOARD=x86-generic # or... | 150 #DEFAULT_BOARD=x86-generic # or... |
151 DEFAULT_BOARD=$(echo $ALL_BOARDS | awk '{print $NF}') | 151 DEFAULT_BOARD=$(echo $ALL_BOARDS | awk '{print $NF}') |
152 | 152 |
153 # Enable --fast by default. | 153 # Enable --fast by default. |
154 DEFAULT_FAST=${FLAGS_TRUE} | 154 DEFAULT_FAST=${FLAGS_TRUE} |
155 | 155 |
156 | 156 |
157 # Standard filenames | 157 # Standard filenames |
158 CHROMEOS_IMAGE_NAME="chromiumos_image.bin" | 158 CHROMEOS_IMAGE_NAME="chromiumos_image.bin" |
159 CHROMEOS_TEST_IMAGE_NAME="chromiumos_test_image.bin" | 159 CHROMEOS_TEST_IMAGE_NAME="chromiumos_test_image.bin" |
160 | 160 CHROMEOS_FACTORY_TEST_IMAGE_NAME="chromiumos_factory_image.bin" |
161 | 161 |
162 # Directory locations inside the dev chroot | 162 # Directory locations inside the dev chroot |
163 CHROOT_TRUNK_DIR="/home/$USER/trunk" | 163 CHROOT_TRUNK_DIR="/home/$USER/trunk" |
164 | 164 |
165 # Install make for portage ebuilds. Used by build_image and gmergefs. | 165 # Install make for portage ebuilds. Used by build_image and gmergefs. |
166 # TODO: Is /usr/local/autotest-chrome still used by anyone? | 166 # TODO: Is /usr/local/autotest-chrome still used by anyone? |
167 DEFAULT_INSTALL_MASK=" | 167 DEFAULT_INSTALL_MASK=" |
168 *.a | 168 *.a |
169 *.la | 169 *.la |
170 /etc/init.d | 170 /etc/init.d |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 args="${args} --force_copy" | 640 args="${args} --force_copy" |
641 fi | 641 fi |
642 | 642 |
643 # Modify the image for test, creating a new test image | 643 # Modify the image for test, creating a new test image |
644 "${SCRIPTS_DIR}/mod_image_for_test.sh" --board=${FLAGS_board} \ | 644 "${SCRIPTS_DIR}/mod_image_for_test.sh" --board=${FLAGS_board} \ |
645 --image="$1/$2" --noinplace ${args} | 645 --image="$1/$2" --noinplace ${args} |
646 | 646 |
647 # From now on we use the just-created test image | 647 # From now on we use the just-created test image |
648 CHROMEOS_RETURN_VAL="$1/${CHROMEOS_TEST_IMAGE_NAME}" | 648 CHROMEOS_RETURN_VAL="$1/${CHROMEOS_TEST_IMAGE_NAME}" |
649 } | 649 } |
OLD | NEW |