DRAFT opencv_3.2.bb: Add 2nd argument to d.getVar()

This commit is contained in:
Herb Kuta 2019-05-29 10:02:34 -07:00
parent bdd8b62fc8
commit 352875e925
1 changed files with 2 additions and 2 deletions

View File

@ -113,12 +113,12 @@ python populate_packages_prepend () {
do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev') do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev')
do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'OpenCV %s library', extra_depends='', allow_links=True) do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'OpenCV %s library', extra_depends='', allow_links=True)
pn = d.getVar('PN') pn = d.getVar('PN', True)
metapkg = pn + '-dev' metapkg = pn + '-dev'
d.setVar('ALLOW_EMPTY_' + metapkg, "1") d.setVar('ALLOW_EMPTY_' + metapkg, "1")
blacklist = [ metapkg ] blacklist = [ metapkg ]
metapkg_rdepends = [ ] metapkg_rdepends = [ ]
packages = d.getVar('PACKAGES').split() packages = d.getVar('PACKAGES', True).split()
for pkg in packages[1:]: for pkg in packages[1:]:
if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'): if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'):
metapkg_rdepends.append(pkg) metapkg_rdepends.append(pkg)