bodnuti

Deterministic checks of Yocto Project & OpenEmbedded patches.


[PATCH 0/2] rm_work: remove work directories for do_populate_sdk

List
openembedded-core
Thread
lore
Author
Sean Nyekjaer
Last message
2026-11-27 12:47
Result
not checked ยท 1 style finding
Checked against
openembedded-core master
Base
39019629a4ad

[PATCH 1/2] rm_work: also remove work directories for do_populate_sdk

warning oelint oelint.task.noanonpython meta/classes/rm_work.bbclass:143
Avoid anonymous python functions as they are expensive and come with all sorts of side effects
140do_rm_work_populate_sdk[depends] = "${@d.getVarFlag('do_populate_sdk', 'depends') or ''}"141do_rm_work_populate_sdk[rdepends] = "${@d.getVarFlag('do_populate_sdk', 'rdepends') or ''}"142do_rm_work_populate_sdk[noexec] = "1"143python () {144    if d.getVarFlag('do_populate_sdk', 'task'):145        bb.build.addtask('do_rm_work_populate_sdk', 'do_populate_sdk', '', d)146}

Model, unverified: The oelint task.noanonpython rule warns about the anonymous python() function used to conditionally register the new task. Fix: If desired, convert the anonymous Python block to a named Python function (e.g. a handler registered at parse time) to avoid the anonymous-function lint, though the functional behavior is unchanged.

Show 1 style finding
info oelint oelint.task.docstrings meta/classes/rm_work.bbclass:136
Every custom task should have a doc string set by task[doc] = '...'
133134# Remove the work directories of the recipes do_populate_sdk depends on.135# Only the dependencies on other recipes are copied, so the image isn't built.136do_rm_work_populate_sdk () {137    :138}139do_rm_work_populate_sdk[recrdeptask] = "do_rm_work"
Model review (bodnuti-qwen3.8-27b-48k-text): 0 findings

Found by a model, not checked by a person; not counted in the result.

10793 tokens read, 87 written; confidence high; layer 4: not escalated (touches meta/classes-global/staging.bbclass): no escalation_model; prompt v5

No findings.

[PATCH 2/2] documentation.conf: add do_rm_work_populate_sdk doc

warning oelint oelint.vars.mispell.unknown meta/conf/documentation.conf:45
'do_rm_work_populate_sdk' is unknown. Consider adding it via --constantmods
42do_populate_sysroot[doc] = "Copies a subset of files installed by do_install into the sysroot in order to make them available to other recipes"43do_rm_work[doc] = "Removes work files after the build system has finished with them"44do_rm_work_all[doc] = "Top-level task for removing work files after the build system has finished with them"45do_rm_work_populate_sdk[doc] = "Removes work files of the recipes do_populate_sdk depends upon"46do_rootfs[doc] = "Creates the root filesystem (file and directory structure) for an image"47do_savedefconfig[doc] = "Creates a minimal Linux kernel configuration file"48do_sizecheck[doc] = "Checks the size of the kernel image against KERNEL_IMAGE_MAXSIZE (if set)"

Model, unverified: The oelint spell-check module doesn't yet know the new task name 'do_rm_work_populate_sdk' because it was just introduced by patch 1/2 in this series. Fix: No fix needed; the task is added in the preceding patch of the series (rm_work.bbclass), so oelint's constant list simply hasn't been regenerated yet.

Model review (bodnuti-qwen3.8-27b-48k-text): 0 findings

Found by a model, not checked by a person; not counted in the result.

8391 tokens read, 97 written; confidence high; prompt v5

No findings.

Not checked

not run shellcheck
shellcheck could not parse meta/classes/rm_work.bbclass at line 22: Couldn't parse this brace group. Fix to allow more checks. (SC1073); its shell was not checked

patchtest: 21 pass, 0 fail, 9 skip

Text report