mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
baremetal-image: Fix do_image dependencies
Commit 282d596b8 added a fix for image.bbclass related to QEMU
dependencies, such fix made the older logic borrowed from
image.bbclass incompatible.
Update the dependency logic to reflect new changes, we no longer
need to add the do_addto_recipe_sysroot dependency specifically.
(From OE-Core rev: 4663f06c81285aeab8e8d33ec5338d7854b9dd9f)
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
37258c4567
commit
1c0c82f8ba
@@ -105,13 +105,17 @@ inherit qemuboot
|
||||
python(){
|
||||
# do_addto_recipe_sysroot doesnt exist for all recipes, but we need it to have
|
||||
# /usr/bin on recipe-sysroot (qemu) populated
|
||||
# The do_addto_recipe_sysroot dependency is coming from EXTRA_IMAGDEPENDS now,
|
||||
# we just need to add the logic to add its dependency to do_image.
|
||||
def extraimage_getdepends(task):
|
||||
deps = ""
|
||||
for dep in (d.getVar('EXTRA_IMAGEDEPENDS') or "").split():
|
||||
# Make sure we only add it for qemu
|
||||
if 'qemu' in dep:
|
||||
deps += " %s:%s" % (dep, task)
|
||||
if ":" in dep:
|
||||
deps += " %s " % (dep)
|
||||
else:
|
||||
deps += " %s:%s" % (dep, task)
|
||||
return deps
|
||||
d.appendVarFlag('do_image', 'depends', extraimage_getdepends('do_addto_recipe_sysroot'))
|
||||
d.appendVarFlag('do_image', 'depends', extraimage_getdepends('do_populate_sysroot'))
|
||||
d.appendVarFlag('do_image', 'depends', extraimage_getdepends('do_populate_sysroot'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user