diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2016-05-12 10:38:02 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-13 13:41:28 +0100 |
commit | fc8f228eae7fbec8374287e9791c72ce2e4aad5c (patch) | |
tree | 3e63348111521556fa53e02f495602dc0ce71442 /meta/recipes-devtools | |
parent | 9390701f11a050fb070c2a7fcab6d23e448e7430 (diff) | |
download | poky-fc8f228eae7fbec8374287e9791c72ce2e4aad5c.tar.gz |
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>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/libtool/libtool_2.4.6.bb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/meta/recipes-devtools/libtool/libtool_2.4.6.bb b/meta/recipes-devtools/libtool/libtool_2.4.6.bb index 3851ec7f83..8858f6eef8 100644 --- a/meta/recipes-devtools/libtool/libtool_2.4.6.bb +++ b/meta/recipes-devtools/libtool/libtool_2.4.6.bb | |||
@@ -5,7 +5,11 @@ RDEPENDS_${PN} += "bash" | |||
5 | # | 5 | # |
6 | # We want the results of libtool-cross preserved - don't stage anything ourselves. | 6 | # We want the results of libtool-cross preserved - don't stage anything ourselves. |
7 | # | 7 | # |
8 | SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess" | 8 | SYSROOT_DIRS_BLACKLIST += " \ |
9 | ${bindir} \ | ||
10 | ${datadir}/aclocal \ | ||
11 | ${datadir}/libtool/build-aux \ | ||
12 | " | ||
9 | 13 | ||
10 | do_install_append () { | 14 | do_install_append () { |
11 | sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \ | 15 | sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \ |
@@ -18,10 +22,3 @@ do_install_append () { | |||
18 | -e 's@^\(postdep_objects="\).*@\1"@' \ | 22 | -e 's@^\(postdep_objects="\).*@\1"@' \ |
19 | -i ${D}${bindir}/libtool | 23 | -i ${D}${bindir}/libtool |
20 | } | 24 | } |
21 | |||
22 | libtool_sysroot_preprocess () { | ||
23 | rm -rf ${SYSROOT_DESTDIR}${bindir}/* | ||
24 | rm -rf ${SYSROOT_DESTDIR}${datadir}/aclocal/* | ||
25 | rm -rf ${SYSROOT_DESTDIR}${datadir}/libtool/build-aux/* | ||
26 | } | ||
27 | |||