Hello

I had problems with symlinks that are present within the toolcain but not present in the created rootfs,
As result the rootfs was not bootable due to the missing symlinks.

eg calling
ptxdist targetinstall glibc

will no longer create/copy necessary symlinks.

for example root/lib/libm.so.6 was missing in the created rootfs

after reverting below patch the symlinks are created again.

Kind Regards,

Frieder


From ef20fc7f4ee74ccfb376319d91cae27bcf55a17a Mon Sep 17 00:00:00 2001
From: Michael Olbrich <m.olbr...@pengutronix.de>
Date: Sun, 5 Jun 2016 19:24:34 +0200
Subject: [PATCH] ptxd_install_toolchain_lib: use ptxd_install_file instead of
 ptxd_install_shared

ptxd_install_toolchain_lib creates ptxd_install_link for all necessary
links, so using ptxd_install_shared just creates them a second time.

Signed-off-by: Michael Olbrich <m.olbr...@pengutronix.de>
---
 scripts/install_copy_toolchain.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/install_copy_toolchain.sh b/scripts/install_copy_toolchain.sh
index 5de2827..2e2616e 100755
--- a/scripts/install_copy_toolchain.sh
+++ b/scripts/install_copy_toolchain.sh
@@ -170,7 +170,7 @@ ptxd_install_toolchain_lib() {

                perm="$(stat -c %a "${lib_path}")"

- echo "ptxd_install_shared \"${lib_path}\" \"${prefix}\" 0 0 \"${perm}\" \"${strip}\"" >> "${STATEDIR}/${packet}.cmds" + echo "ptxd_install_file \"${lib_path}\" \"${prefix}/${lib}\" 0 0 \"${perm}\" \"${strip}\"" >> "${STATEDIR}/${packet}.cmds"
            fi
        else
            echo "error: found ${lib_path}, but neither file nor link" 2>&1
--
2.9.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to