bodnuti: [OE-core][PATCH v5 0/6] Implement SPDX for deploy tasks base: fa83da7da277 [OE-core][PATCH v5 2/6] spdx: Add ability for deploy tasks to create SPDX WARNING oelint oelint.vars.mispell.unknown meta/classes-recipe/deploy.bbclass:9 'SPDX_DEPLOY_ARTIFACTS_DIR' is unknown. Consider adding it via --constantmods 6 | 7 | DEPLOYDIR = "${WORKDIR}/deploy-${PN}" 8 | SSTATETASKS += "do_deploy" > 9 | SPDX_DEPLOY_ARTIFACTS_DIR:task-deploy = "${DEPLOYDIR}" 10 | do_deploy[sstate-inputdirs] = "${DEPLOYDIR}" 11 | do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}" 12 | [OE-core][PATCH v5 5/6] Add SPDX deploy tasks to various recipes ERROR patchtest test_mbox.test_shortlog_format Commit shortlog (first line of commit message) should follow the format ": " WARNING oelint oelint.vars.mispell.unknown meta/classes-recipe/barebox.bbclass:168 'SPDX_DEPLOY_TASKS' is unknown. Consider adding it via --constantmods 165 | fi 166 | } 167 | addtask deploy after do_compile > 168 | SPDX_DEPLOY_TASKS += "do_deploy" 169 | 170 | EXPORT_FUNCTIONS do_configure do_compile do_install do_deploy WARNING oelint oelint.vars.mispell.unknown meta/classes-recipe/devicetree.bbclass:169 'SPDX_DEPLOY_TASKS' is unknown. Consider adding it via --constantmods 166 | done 167 | } 168 | addtask deploy before do_build after do_install > 169 | SPDX_DEPLOY_TASKS += "do_deploy" 170 | 171 | EXPORT_FUNCTIONS do_compile do_install do_deploy 172 | WARNING oelint oelint.vars.mispell.unknown meta/classes-recipe/kernel-fit-image.bbclass:265 'SPDX_DEPLOY_TASKS' is unknown. Consider adding it via --constantmods 262 | fi 263 | } 264 | addtask deploy after do_compile before do_build > 265 | SPDX_DEPLOY_TASKS += "do_deploy" WARNING oelint oelint.vars.mispell.unknown meta/recipes-bsp/grub/grub-efi_2.14.bb:102 'SPDX_DEPLOY_TASKS' is unknown. Consider adding it via --constantmods 99 | } 100 | 101 | addtask deploy after do_install before do_build > 102 | SPDX_DEPLOY_TASKS += "do_deploy" 103 | 104 | FILES:${PN} = "${libdir}/grub/${GRUB_TARGET}-efi \ 105 | ${datadir}/grub \ WARNING oelint oelint.vars.mispell.unknown meta/recipes-bsp/opensbi/opensbi_1.9.bb:52 'SPDX_DEPLOY_TASKS' is unknown. Consider adding it via --constantmods 49 | } 50 | 51 | addtask deploy before do_build after do_install > 52 | SPDX_DEPLOY_TASKS += "do_deploy" 53 | 54 | FILES:${PN} += "/share/opensbi/*/${RISCV_SBI_PLAT}/firmware/fw_jump.*" 55 | FILES:${PN} += "/share/opensbi/*/${RISCV_SBI_PLAT}/firmware/fw_payload.*" WARNING oelint oelint.vars.mispell.unknown meta/recipes-bsp/u-boot/u-boot.inc:477 'SPDX_DEPLOY_TASKS' is unknown. Consider adding it via --constantmods 474 | } 475 | 476 | addtask deploy before do_build after do_compile > 477 | SPDX_DEPLOY_TASKS += "do_deploy" WARNING oelint oelint.vars.mispell.unknown meta/recipes-core/systemd/systemd-boot_262.bb:74 'SPDX_DEPLOY_TASKS' is unknown. Consider adding it via --constantmods 71 | } 72 | 73 | addtask deploy before do_build after do_compile > 74 | SPDX_DEPLOY_TASKS += "do_deploy" [OE-core][PATCH v5 6/6] spdx: Replace do_create_image_spdx with deploy task WARNING oelint oelint.vars.mispell.unknown meta/classes-recipe/create-spdx-image-3.0.bbclass:55 'oe.spdx30_tasks.create_image_spdx' is unknown. Consider adding it via --constantmods 52 | 53 | oe.spdx30_tasks.create_image_spdx(d, spdxdeploydir) 54 | } > 55 | oe.spdx30_tasks.create_image_spdx[vardeps] += "SPDX_IMAGE_PURPOSE" 56 | SPDX_DEPLOY_TASKS += "do_image_complete:create_image_spdx" 57 | # No deploy sbom is needed since do_create_image_sbom_spdx() is used instead 58 | SPDX_DEPLOY_SBOM = "0" WARNING oelint oelint.vars.mispell.unknown meta/classes-recipe/create-spdx-image-3.0.bbclass:56 'SPDX_DEPLOY_TASKS' is unknown. Consider adding it via --constantmods 53 | oe.spdx30_tasks.create_image_spdx(d, spdxdeploydir) 54 | } 55 | oe.spdx30_tasks.create_image_spdx[vardeps] += "SPDX_IMAGE_PURPOSE" > 56 | SPDX_DEPLOY_TASKS += "do_image_complete:create_image_spdx" 57 | # No deploy sbom is needed since do_create_image_sbom_spdx() is used instead 58 | SPDX_DEPLOY_SBOM = "0" 59 | WARNING oelint oelint.vars.mispell.unknown meta/classes-recipe/create-spdx-image-3.0.bbclass:58 'SPDX_DEPLOY_SBOM' is unknown. Consider adding it via --constantmods 55 | oe.spdx30_tasks.create_image_spdx[vardeps] += "SPDX_IMAGE_PURPOSE" 56 | SPDX_DEPLOY_TASKS += "do_image_complete:create_image_spdx" 57 | # No deploy sbom is needed since do_create_image_sbom_spdx() is used instead > 58 | SPDX_DEPLOY_SBOM = "0" 59 | 60 | python do_create_image_sbom_spdx() { 61 | import oe.spdx30_tasks WARNING oelint oelint.vars.mispell meta/classes/create-spdx-3.0.bbclass:192 'SPDX_DEPLOY_SBOM_NAME' is unknown, maybe you meant 'SPDX_RECIPE_SBOM_NAME' 189 | If the recipe already has another task to create an SBoM, this should be \ 190 | set to '0' to prevent multiple SBoMs from being created." 191 | > 192 | SPDX_DEPLOY_SBOM_NAME ?= "${PN}-deploy-sbom" 193 | SPDX_DEPLOY_SBOM_NAME[doc] = "The name of the output deploy SBoM when using \ 194 | create_deploy_sbom" 195 | WARNING oelint oelint.vars.mispell meta/classes/create-spdx-3.0.bbclass:193 'SPDX_DEPLOY_SBOM_NAME' is unknown, maybe you meant 'SPDX_RECIPE_SBOM_NAME' 190 | set to '0' to prevent multiple SBoMs from being created." 191 | 192 | SPDX_DEPLOY_SBOM_NAME ?= "${PN}-deploy-sbom" > 193 | SPDX_DEPLOY_SBOM_NAME[doc] = "The name of the output deploy SBoM when using \ 194 | create_deploy_sbom" 195 | 196 | SPDX_DEPLOY_ARTIFACTS = "AUTO" WARNING oelint oelint.vars.mispell.unknown meta/classes/create-spdx-3.0.bbclass:197 'SPDX_DEPLOY_ARITFACTS' is unknown. Consider adding it via --constantmods 194 | create_deploy_sbom" 195 | 196 | SPDX_DEPLOY_ARTIFACTS = "AUTO" > 197 | SPDX_DEPLOY_ARITFACTS[doc] = "A space separated list of deployed artifacts, \ 198 | relative to SPDX_DEPLOY_ARTIFACTS_DIR that should be included in the SBoM. \ 199 | If 'AUTO' (the default), all files in SPDX_DEPLOY_ARITFACTS_DIR will be \ 200 | added. A :task- override *must* be used to set this value so that it is \ WARNING oelint oelint.vars.mispell.unknown meta/classes/create-spdx-3.0.bbclass:355 'oe.spdx30_tasks.find_build_dep_objsets' is unknown. Consider adding it via --constantmods 352 | 353 | oe.spdx30_tasks.create_deploy_spdx(d, spdxdeploydir, artifactsdir, artifacts) 354 | } > 355 | oe.spdx30_tasks.find_build_dep_objsets[vardepsexclude] += "BB_TASKDEPDATA" 356 | 357 | python () { 358 | # Most recipes generate SPDX output in a distinct task from the task that WARNING oelint oelint.task.noanonpython meta/classes/create-spdx-3.0.bbclass:357 Avoid anonymous python functions as they are expensive and come with all sorts of side effects 354 | } 355 | oe.spdx30_tasks.find_build_dep_objsets[vardepsexclude] += "BB_TASKDEPDATA" 356 | > 357 | python () { 358 | # Most recipes generate SPDX output in a distinct task from the task that 359 | # actually is the relevant dependency. As such, we need to map the task 360 | # that we care about to the task that generates the corresponding SPDX WARNING oelint oelint.vars.mispell.unknown meta/classes/create-spdx-3.0.bbclass:473 'SSTATE_SKIP_CREATION' is unknown. Consider adding it via --constantmods 470 | sstate_setscene(d) 471 | } 472 | addtask do_create_deploy_sbom_setscene > 473 | SSTATE_SKIP_CREATION:task-create-deploy-sbom = "1" WARNING oelint oelint.vars.mispell meta/classes/spdx-common.bbclass:28 'SPDXDEPLOYSBOMDEPLOY' is unknown, maybe you meant 'SPDXRECIPESBOMDEPLOY' 25 | SPDXRECIPEDEPLOY = "${SPDXDIR}/recipe-deploy" 26 | SPDXRUNTIMEDEPLOY = "${SPDXDIR}/runtime-deploy" 27 | SPDXRECIPESBOMDEPLOY = "${SPDXDIR}/recipes-bom-deploy" > 28 | SPDXDEPLOYSBOMDEPLOY = "${SPDXDIR}/deploy-bom-deploy" 29 | 30 | SPDX_INCLUDE_SOURCES ??= "0" 31 | SPDX_INCLUDE_SOURCES[doc] = "If set to '1', include source code files in the \ style WARNING oelint oelint.vars.outofcontext meta/recipes-core/systemd/systemd-boot_262.bb:2 FILESEXTRAPATHS should be only set in bbappend(s) but is used in /tmp/bodnuti-F9vZwW/tree/meta/recipes-core/systemd/systemd-boot_262.bb,/tmp/bodnuti-F9vZwW/tree/meta/recipes-core/systemd/systemd.inc,/tmp/bodnuti-F9vZwW/tree/meta/classes-recipe/qemu.bbclass,/tmp/bodnuti-F9vZwW/tree/meta/classes-recipe/meson.bbclass,/tmp/bodnuti-F9vZwW/tree/meta/conf/image-uefi.conf,/tmp/bodnuti-F9vZwW/tree/meta/classes-recipe/upstream-stable-release-point.bbclass,/tmp/bodnuti-F9vZwW/tree/meta/classes-recipe/meson-routines.bbclass,/tmp/bodnuti-F9vZwW/tree/meta/classes-recipe/pkgconfig.bbclass,/tmp/bodnuti-F9vZwW/tree/meta/classes-recipe/gettext.bbclass,/tmp/bodnuti-F9vZwW/tree/meta/classes-recipe/deploy.bbclass,/tmp/bodnuti-F9vZwW/tree/meta/classes-recipe/python3native.bbclass 1 | require systemd.inc > 2 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemd:" 3 | 4 | require conf/image-uefi.conf 5 | INFO oelint oelint.task.docstrings meta/classes-recipe/create-spdx-image-3.0.bbclass:46 Every custom task should have a doc string set by task[doc] = '...' 43 | } 44 | addtask do_create_rootfs_spdx_setscene 45 | > 46 | python create_image_spdx() { 47 | import oe.spdx30_tasks 48 | from pathlib import Path 49 | current_task = "do_" + d.getVar("BB_CURRENTTASK") INFO oelint oelint.task.docstrings meta/classes/create-spdx-3.0.bbclass:339 Every custom task should have a doc string set by task[doc] = '...' 336 | addhandler spdx30_build_started_handler 337 | spdx30_build_started_handler[eventmask] = "bb.event.BuildStarted" 338 | > 339 | python create_deploy_spdx() { 340 | import oe.spdx30_tasks 341 | from pathlib import Path 342 | current_task = "do_" + d.getVar("BB_CURRENTTASK") INFO oelint oelint.task.docstrings meta/classes/create-spdx-3.0.bbclass:450 Every custom task should have a doc string set by task[doc] = '...' 447 | bb.build.addtask("do_create_deploy_sbom", "do_build", " ".join(deploy_sbom_tasks), d) 448 | } 449 | > 450 | python do_create_deploy_sbom() { 451 | import oe.spdx30_tasks 452 | from pathlib import Path 453 | deploydir = Path(d.getVar("SPDXDEPLOYSBOMDEPLOY")) INFO oelint oelint.task.docstrings meta/classes/create-spdx-3.0.bbclass:469 Every custom task should have a doc string set by task[doc] = '...' 466 | do_create_deploy_sbom[file-checksums] += "${SPDX3_DEP_FILES}" 467 | 468 | SSTATETASKS += "do_create_deploy_sbom" > 469 | python do_create_deploy_sbom_setscene() { 470 | sstate_setscene(d) 471 | } 472 | addtask do_create_deploy_sbom_setscene patchtest: 59 pass, 1 fail, 30 skip 19 findings: 1 errors, 18 warnings, 0 info (5 style, not counted)