Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swupdate: Fix multilib depends #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions recipes-support/swupdate/swupdate.inc
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ python () {
features = features.splitlines(True)


depends = d.getVar('DEPENDS', False)
depends = ''
pn = d.getVar('PN')
rdepends = d.getVar("RDEPENDS:%s" % pn) or ""
rdepends = ''
mlprefix = d.getVar("MLPREFIX") or ""

if 'CONFIG_REMOTE_HANDLER=y\n' in features:
depends += ' zeromq'
Expand Down Expand Up @@ -188,8 +189,22 @@ python () {
if 'CONFIG_DELTA=y\n' in features:
depends += ' zchunk'

d.setVar('DEPENDS', depends)
d.setVar("RDEPENDS:%s" % pn, rdepends)
if mlprefix:
deps = ' '
rdeps = ' '
for dep in depends.split():
dep = mlprefix + dep + ' '
deps += dep

for rdep in rdepends.split():
rdep = mlprefix + dep + ' '
rdeps += rdep

depends = deps
repends = rdeps

d.appendVar('DEPENDS', depends)
d.appendVar("RDEPENDS:%s" % pn, rdepends)

if 'CONFIG_MONGOOSE=y\n' in features:
d.setVar('SWUPDATE_MONGOOSE', 'true')
Expand Down