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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 # Directory locations inside the dev chroot | 116 # Directory locations inside the dev chroot |
117 CHROOT_TRUNK_DIR="/home/$USER/trunk" | 117 CHROOT_TRUNK_DIR="/home/$USER/trunk" |
118 | 118 |
119 # Install make for portage ebuilds. Used by build_image and gmergefs. | 119 # Install make for portage ebuilds. Used by build_image and gmergefs. |
120 DEFAULT_INSTALL_MASK="/usr/include /usr/man /usr/share/man /usr/share/doc \ | 120 DEFAULT_INSTALL_MASK="/usr/include /usr/man /usr/share/man /usr/share/doc \ |
121 /usr/share/gtk-doc /usr/share/gtk-2.0 /usr/lib/gtk-2.0/include \ | 121 /usr/share/gtk-doc /usr/share/gtk-2.0 /usr/lib/gtk-2.0/include \ |
122 /usr/share/info /usr/share/aclocal /usr/lib/gcc /usr/lib/pkgconfig \ | 122 /usr/share/info /usr/share/aclocal /usr/lib/gcc /usr/lib/pkgconfig \ |
123 /usr/share/pkgconfig /usr/share/gettext /usr/share/readline /etc/runlevels \ | 123 /usr/share/pkgconfig /usr/share/gettext /usr/share/readline /etc/runlevels \ |
124 /usr/share/openrc /lib/rc *.a *.la /etc/init.d" | 124 /usr/share/openrc /lib/rc *.a *.la /etc/init.d" |
125 | 125 |
| 126 FACTORY_INSTALL_MASK="/opt/google/chrome /opt/google/o3d /opt/netscape \ |
| 127 /usr/lib/dri /usr/lib/python2.6/test /usr/share/chewing /usr/share/fonts \ |
| 128 /usr/share/ibus-pinyin /usr/share/libhangul /usr/share/locale \ |
| 129 /usr/share/m17n /usr/share/mime /usr/share/sounds /usr/share/tts \ |
| 130 /usr/share/X11 /usr/share/zoneinfo" |
| 131 |
126 # Check to ensure not running old scripts | 132 # Check to ensure not running old scripts |
127 V_REVERSE='[7m' | 133 V_REVERSE='[7m' |
128 V_VIDOFF='[m' | 134 V_VIDOFF='[m' |
129 case "$(basename $0)" in | 135 case "$(basename $0)" in |
130 build_image.sh|build_platform_packages.sh|customize_rootfs.sh|make_chroot.sh) | 136 build_image.sh|build_platform_packages.sh|customize_rootfs.sh|make_chroot.sh) |
131 echo | 137 echo |
132 echo "$V_REVERSE============================================================" | 138 echo "$V_REVERSE============================================================" |
133 echo "=========================== WARNING ======================" | 139 echo "=========================== WARNING ======================" |
134 echo "============================================================$V_VIDOFF" | 140 echo "============================================================$V_VIDOFF" |
135 echo | 141 echo |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 | 402 |
397 # Setup var symlink. | 403 # Setup var symlink. |
398 if [ -h "${dev_image_root}/var" ]; then | 404 if [ -h "${dev_image_root}/var" ]; then |
399 sudo unlink "${dev_image_root}/var" | 405 sudo unlink "${dev_image_root}/var" |
400 elif [ -e "${dev_image_root}/var" ]; then | 406 elif [ -e "${dev_image_root}/var" ]; then |
401 die "${dev_image_root}/var should be a symlink if it exists" | 407 die "${dev_image_root}/var should be a symlink if it exists" |
402 fi | 408 fi |
403 | 409 |
404 sudo ln -s "${var_target}" "${dev_image_root}/var" | 410 sudo ln -s "${var_target}" "${dev_image_root}/var" |
405 } | 411 } |
OLD | NEW |