Files
meta-mortsgna/classes/instant-sysroot-native.bbclass
Andreas Müller 0411624070 instant-sysroot-native.bbclass: append space in do_populate_sysroot[postfuncs]
Wouldn't expect this necessary but other do_populate_sysroot[postfuncs] do
append space. So since this change won't cause any trouble if not necessary
do same.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2020-10-10 22:04:48 +02:00

32 lines
1.2 KiB
Plaintext

#------------------------------------------------------------------------------
# class for instant native sysroot
#
# Hardlink recipe sysroot and generated sysroot to instant native sysroot
#------------------------------------------------------------------------------
inherit utils instant-paths
do_prepare_recipe_sysroot[postfuncs] += "${INSTANTSYSROOTFUNC}"
INSTANTSYSROOTFUNC = ""
INSTANTSYSROOTFUNC_class-native = "instant_sysroot_copy"
INSTANTSYSROOTFUNC_class-cross = "instant_sysroot_copy"
instant_sysroot_copy () {
mkdir -p ${INSTANT_NATIVE_PATH}
hardlinkdir ${RECIPE_SYSROOT_NATIVE} ${INSTANT_NATIVE_PATH}
}
do_populate_sysroot[postfuncs] += "${INSTANTPOPULATE} "
INSTANTPOPULATE = ""
INSTANTPOPULATE_class-native = "instant_populate_sysroot"
INSTANTPOPULATE_class-cross = "instant_populate_sysroot"
instant_populate_sysroot () {
find "${SYSROOT_DESTDIR}${STAGING_DIR_NATIVE}" -type f -o -type l | while read file; do
alignedpath=`echo "$file" | sed 's:${SYSROOT_DESTDIR}${STAGING_DIR_NATIVE}::'`
targetdir=`dirname "${INSTANT_NATIVE_PATH}/${alignedpath}"`
mkdir -p "$targetdir"
cp -fld "${file}" "${targetdir}"
done
}