mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
rm_work: Fix RM_WORK_EXCLUDE for image/sdk recipes
A previous change meant image/sdk recipes were removed unconditionally by the class and did not respect RM_WORK_EXCLUDE. This fixes that problem. [YOCTO #7114] (From OE-Core rev: 050de16968fe6efeba5d64761b11512549e9fdc2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -110,3 +110,11 @@ rm_work_rootfs () {
|
||||
}
|
||||
rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs"
|
||||
|
||||
python () {
|
||||
# If the recipe name is in the RM_WORK_EXCLUDE, skip the recipe.
|
||||
excludes = (d.getVar("RM_WORK_EXCLUDE", True) or "").split()
|
||||
pn = d.getVar("PN", True)
|
||||
if pn in excludes:
|
||||
d.delVarFlag('rm_work_rootfs', 'cleandirs')
|
||||
d.delVarFlag('rm_work_populatesdk', 'cleandirs')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user