Skip to content

Commit

Permalink
Merge pull request #104 from OSSystemsEmbeddedLinux/topic/fix-cve-mic…
Browse files Browse the repository at this point in the history
…kledore

cve_filter: Fix the sequence of cve_filter task execution
  • Loading branch information
otavio authored Jun 21, 2024
2 parents f99403e + a29dc57 commit 16927bd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions classes/cve-filter.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,10 @@ python do_cve_filter (){
bb.plain("DONE!!")
}

addtask cve_filter after do_image before do_image_complete
addtask cve_filter after do_rootfs before do_image

IMAGE_POSTPROCESS_COMMAND += "link_cvefilter_markdownfile;"
ROOTFS_POSTPROCESS_COMMAND:prepend = "link_cvefilter_markdownfile; "

link_cvefilter_markdownfile () {
if [ -e "${CVE_FILTER_MARKDOWN_FILE}" ]; then
ln -sf ${CVE_FILTER_MARKDOWN_FILE_NAME} ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.md
fi
ln -sf ${CVE_FILTER_MARKDOWN_FILE_NAME} ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.md
}

0 comments on commit 16927bd

Please sign in to comment.