Add /usr/local/lib to readlibs for test_image and move ldconfig higher for sful

Review URL: http://codereview.chromium.org/1618007
This commit is contained in:
Chris Sosa 2010-04-08 10:05:46 -07:00
parent 4bffb8be6a
commit 503efe1f65
2 changed files with 12 additions and 11 deletions

View File

@ -360,17 +360,6 @@ menuentry "32-bit serial" {
}
EOF
"${SCRIPTS_DIR}/customize_rootfs" \
--root="$ROOT_FS_DIR" \
--target="$ARCH" \
--board="$BOARD" \
$WITH_DEV
# Check that the image has been correctly created.
"${SCRIPTS_DIR}/test_image" \
--root="$ROOT_FS_DIR" \
--target="$ARCH"
# Enable dev mode on the target system and re-run ldconfig
# for rootfs's ld.so.cache
if [ $FLAGS_statefuldev -eq $FLAGS_TRUE ] ; then
@ -385,6 +374,17 @@ if [ $FLAGS_statefuldev -eq $FLAGS_TRUE ] ; then
sudo ln -sf "/usr/local/bin/aterm" "/usr/bin/xterm"
fi
"${SCRIPTS_DIR}/customize_rootfs" \
--root="$ROOT_FS_DIR" \
--target="$ARCH" \
--board="$BOARD" \
$WITH_DEV
# Check that the image has been correctly created.
"${SCRIPTS_DIR}/test_image" \
--root="$ROOT_FS_DIR" \
--target="$ARCH"
# Clean up symlinks so they work on a running target rooted at "/".
# Here development packages are rooted at /usr/local. However, do not
# create /usr/local or /var on host (already exist on target).

View File

@ -32,6 +32,7 @@ class CheckDependencies(object):
# required for understanding old-style Netscape plugins.
self._ReadLibs([
"%s/lib" % root,
"%s/usr/local/lib" % root,
"%s/usr/lib" % root,
"%s/usr/lib/nss" % root,
"%s/usr/lib/nspr" % root,