summaryrefslogtreecommitdiffstats
path: root/meta/classes/remove-libtool.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-01-29 21:24:40 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-02 14:44:16 (GMT)
commit111af1d9138e7208200e48861be8f144a280b10e (patch)
tree8306dbf5e56f0795a70337f6adeb7fdc5f58f4b4 /meta/classes/remove-libtool.bbclass
parent333dce483fc056512443a7a318f55abace7ca98a (diff)
downloadpoky-111af1d9138e7208200e48861be8f144a280b10e.tar.gz
remove-libtool: add new class
This class adds a postfunc to do_install to remove all .la files installed by libtool, so that they are absent from both the sysroots and target packages. If a recipe needs these files to be installed then it can be overridden by setting REMOVE_LIBTOOL_LA. Note that this class isn't enabled by default. [ YOCTO #2380 ] (From OE-Core rev: da1219b5c48fe50d667bc72bd9ad0115b25d5558) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/remove-libtool.bbclass')
-rw-r--r--meta/classes/remove-libtool.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/remove-libtool.bbclass b/meta/classes/remove-libtool.bbclass
new file mode 100644
index 0000000..3fd0cd5
--- /dev/null
+++ b/meta/classes/remove-libtool.bbclass
@@ -0,0 +1,11 @@
1# This class removes libtool .la files after do_install
2
3REMOVE_LIBTOOL_LA ?= "1"
4
5remove_libtool_la() {
6 if [ "${REMOVE_LIBTOOL_LA}" != "0" ]; then
7 find "${D}" -ignore_readdir_race -name "*.la" -delete
8 fi
9}
10
11do_install[postfuncs] += "remove_libtool_la"