mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
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:
parent
4bffb8be6a
commit
503efe1f65
22
build_image
22
build_image
@ -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).
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user