From aa892ad0fcaa3075a7121955b1034274e7e92f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 14 Dec 2018 13:52:16 +0100 Subject: [PATCH] instant-sysroot-native: copy (broken) symlinks too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- classes/instant-sysroot-native.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/instant-sysroot-native.bbclass b/classes/instant-sysroot-native.bbclass index 3c32ebc..912e26c 100644 --- a/classes/instant-sysroot-native.bbclass +++ b/classes/instant-sysroot-native.bbclass @@ -20,10 +20,10 @@ INSTANTPOPULATE_class-native = "instant_populate_sysroot" INSTANTPOPULATE_class-cross = "instant_populate_sysroot" instant_populate_sysroot () { - for executable in `find ${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE} -type f`; do - alignedpath=`echo ${executable} | sed 's:${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}::'` + for file in `find ${SYSROOT_DESTDIR}${STAGING_DIR_NATIVE} -type f -o -type l`; do + alignedpath=`echo "$file" | sed 's:${SYSROOT_DESTDIR}${STAGING_DIR_NATIVE}::'` targetdir=`dirname ${INSTANT_NATIVE_PATH}/${alignedpath}` mkdir -p "$targetdir" - cp -fl "${executable}" "${targetdir}" + cp -fld "${file}" "${targetdir}" done }