libtool: Use SYSROOT_DIRS_BLACKLIST to exclude dirs from the sysroot

(From OE-Core rev: 83cdfd77b1b48f2bd648d3a5991eadb7f01f647e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Peter Kjellerstedt 2016-05-12 10:38:02 +02:00 committed by Richard Purdie
parent 9390701f11
commit fc8f228eae
1 changed files with 5 additions and 8 deletions

View File

@ -5,7 +5,11 @@ RDEPENDS_${PN} += "bash"
#
# We want the results of libtool-cross preserved - don't stage anything ourselves.
#
SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess"
SYSROOT_DIRS_BLACKLIST += " \
${bindir} \
${datadir}/aclocal \
${datadir}/libtool/build-aux \
"
do_install_append () {
sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \
@ -18,10 +22,3 @@ do_install_append () {
-e 's@^\(postdep_objects="\).*@\1"@' \
-i ${D}${bindir}/libtool
}
libtool_sysroot_preprocess () {
rm -rf ${SYSROOT_DESTDIR}${bindir}/*
rm -rf ${SYSROOT_DESTDIR}${datadir}/aclocal/*
rm -rf ${SYSROOT_DESTDIR}${datadir}/libtool/build-aux/*
}