python: add python-modules-native to RPROVIDES for python-native

Also clean up the logic in the script to be more Pythonic.

(From OE-Core rev: e5ac43e1b549e637f1820a03dd0a633fbecd395c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2017-06-02 17:36:24 +01:00
committed by Richard Purdie
parent d554d90da3
commit b39d1c6842
2 changed files with 6 additions and 9 deletions

View File

@@ -74,13 +74,11 @@ class MakefileMaker:
#
if self.isNative:
rprovideLine = 'RPROVIDES+="'
for name in sorted(self.packages):
rprovideLine += "%s-native " % name.replace( '${PN}', 'python' )
rprovideLine += '"'
pkglist = []
for name in ['${PN}-modules'] + sorted(self.packages):
pkglist.append('%s-native' % name.replace('${PN}', 'python'))
self.out( rprovideLine )
self.out( "" )
self.out('RPROVIDES += "%s"' % " ".join(pkglist))
return
#