diff options
author | Guojian Zhou <guojian.zhou@windriver.com> | 2016-05-16 16:53:38 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-17 14:42:17 +0100 |
commit | 76727170def4fe540bed28f79fca09037a1b3fe4 (patch) | |
tree | 6aa5e827509be4e05eb480ea617a8a20a9e1b1f6 /meta/recipes-devtools | |
parent | dcc5d6bc2e3e5848f36fe1001b8cb65576047b7d (diff) | |
download | openembedded-core-76727170def4fe540bed28f79fca09037a1b3fe4.tar.gz openembedded-core-76727170def4fe540bed28f79fca09037a1b3fe4.tar.bz2 openembedded-core-76727170def4fe540bed28f79fca09037a1b3fe4.zip |
perl: use PACKAGESPLITFUNCS instead of populate_packages_prepend
This is cleaner and leads to more accurate profiles.
Signed-off-by: Guojian Zhou <guojian.zhou@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/perl/perl_5.22.1.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.22.1.bb b/meta/recipes-devtools/perl/perl_5.22.1.bb index bf8b3b60be..f955e6ff4b 100644 --- a/meta/recipes-devtools/perl/perl_5.22.1.bb +++ b/meta/recipes-devtools/perl/perl_5.22.1.bb @@ -340,7 +340,9 @@ FILES_perl-module-unicore += "${libdir}/perl/${PV}/unicore" ALLOW_EMPTY_perl-modules = "1" PACKAGES_append = " perl-modules " -python populate_packages_prepend () { +PACKAGESPLITFUNCS_prepend = "split_perl_packages " + +python split_perl_packages () { libdir = d.expand('${libdir}/perl/${PV}') do_split_packages(d, libdir, 'auto/([^.]*)/[^/]*\.(so|ld|ix|al)', 'perl-module-%s', 'perl module %s', recursive=True, match_path=True, prepend=False) do_split_packages(d, libdir, 'Module/([^\/]*)\.pm', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True, prepend=False) |