mirror of
https://git.yoctoproject.org/poky
synced 2026-03-31 02:02:25 +02:00
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:
committed by
Richard Purdie
parent
d554d90da3
commit
b39d1c6842
@@ -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
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user