Use more consistent names for our instant-classes

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2018-12-07 14:09:27 +01:00
parent 30da1979e6
commit 6d38466293
6 changed files with 10 additions and 9 deletions

View File

@@ -0,0 +1,29 @@
#------------------------------------------------------------------------------
# class for 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 () {
for executable in `find ${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE} -type f`; do
alignedpath=`echo ${executable} | sed 's:${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}::'`
targetdir=`dirname ${INSTANT_NATIVE_PATH}/${alignedpath}`
mkdir -p "$targetdir"
cp -fl "${executable}" "${targetdir}"
done
}