From e82f07c262482bb45c675d42bc3dd60175f0ad60 Mon Sep 17 00:00:00 2001 From: Daniel Erat Date: Tue, 21 Dec 2010 13:39:22 -0800 Subject: [PATCH] crosutils: Exclude Xvfb and Xnest from images. These are used to run virtual or nested X servers, which we don't do. Removing the binaries saves 3.4 MB. Change-Id: I528231a781f8a7a0202ca109f8064c3b11ff172b BUG=chromium-os:8073 TEST=built an image and checked that the files were gone Review URL: http://codereview.chromium.org/5990003 --- common.sh | 66 +++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 52 insertions(+), 14 deletions(-) diff --git a/common.sh b/common.sh index 5510b2c3af..291c112f77 100644 --- a/common.sh +++ b/common.sh @@ -129,21 +129,59 @@ CHROOT_TRUNK_DIR="/home/$USER/trunk" # Install make for portage ebuilds. Used by build_image and gmergefs. # TODO: Is /usr/local/autotest-chrome still used by anyone? -DEFAULT_INSTALL_MASK="/usr/include /usr/man /usr/share/man /usr/share/doc \ - /usr/share/gtk-doc /usr/share/gtk-2.0 /usr/lib/gtk-2.0/include \ - /usr/share/info /usr/share/aclocal /usr/lib/gcc /usr/lib/pkgconfig \ - /usr/share/pkgconfig /usr/share/gettext /usr/share/readline /etc/runlevels \ - /usr/share/openrc /lib/rc *.a *.la /etc/init.d /usr/lib/debug - /usr/local/autotest /usr/local/autotest-chrome" +DEFAULT_INSTALL_MASK=" + *.a + *.la + /etc/init.d + /etc/runlevels + /lib/rc + /usr/bin/Xnest + /usr/bin/Xvfb + /usr/include + /usr/lib/debug + /usr/lib/gcc + /usr/lib/gtk-2.0/include + /usr/lib/pkgconfig + /usr/local/autotest + /usr/local/autotest-chrome + /usr/man + /usr/share/aclocal + /usr/share/doc + /usr/share/gettext + /usr/share/gtk-2.0 + /usr/share/gtk-doc + /usr/share/info + /usr/share/man + /usr/share/openrc + /usr/share/pkgconfig + /usr/share/readline + " -FACTORY_INSTALL_MASK="/opt/google/chrome /opt/google/o3d /opt/netscape \ - /opt/google/talkplugin /opt/Qualcomm /opt/Synaptics \ - /usr/lib/dri /usr/lib/python2.6/test \ - /usr/share/chewing /usr/share/fonts \ - /usr/share/ibus-pinyin /usr/share/libhangul /usr/share/locale \ - /usr/share/m17n /usr/share/mime /usr/share/sounds /usr/share/tts \ - /usr/share/X11 /usr/share/zoneinfo /usr/lib/debug - /usr/local/autotest /usr/local/autotest-chrome /usr/local/autotest-pkgs" +FACTORY_INSTALL_MASK=" + /opt/Qualcomm + /opt/Synaptics + /opt/google/chrome + /opt/google/o3d + /opt/google/talkplugin + /opt/netscape + /usr/lib/debug + /usr/lib/dri + /usr/lib/python2.6/test + /usr/local/autotest + /usr/local/autotest-chrome + /usr/local/autotest-pkgs + /usr/share/X11 + /usr/share/chewing + /usr/share/fonts + /usr/share/ibus-pinyin + /usr/share/libhangul + /usr/share/locale + /usr/share/m17n + /usr/share/mime + /usr/share/sounds + /usr/share/tts + /usr/share/zoneinfo + " # Check to ensure not running old scripts V_REVERSE=''