| Message ID | 20260128163827.386933-2-valentin.boudevin@gmail.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | improve_kernel_cve_report: Add a bbclass support | expand |
On Wed Jan 28, 2026 at 5:38 PM CET, vboudevin via lists.openembedded.org wrote: > This recipe is in charge of cloning and setting the Linux repository: > https://git.kernel.org/pub/scm/linux/security/vulns.git/ > > The variable VULNS_USE_AUTOREV can be used to use AUTOREV to use the > The latest available commit on the remote repository and stay > up-to-date with the latest information available. > > AUTOREV would make the build non-deterministic, turned off by default. > > Signed-off-by: ValentinBoudevin <valentin.boudevin@gmail.com> > --- Hi Valentin, Thanks for your patch. Please note you will have to add someone as a maintainer for the new recipe, in meta/conf/distro/include/maintainers.inc. Thanks, Mathieu
diff --git a/meta/recipes-kernel/vulns-native/vulns-native_git.bb b/meta/recipes-kernel/vulns-native/vulns-native_git.bb new file mode 100644 index 0000000000..089382704f --- /dev/null +++ b/meta/recipes-kernel/vulns-native/vulns-native_git.bb @@ -0,0 +1,24 @@ +SUMMARY = "Linux Security Vulns Repo" +DESCRIPTION = "Repo for tracking and maintaining the CVE identifiers reserved and assigned to \ +the Linux kernel project." +HOMEPAGE = "https://git.kernel.org/pub/scm/linux/security/vulns.git/" +LICENSE = "cve-tou" +LIC_FILES_CHKSUM = "file://LICENSES/cve-tou.txt;md5=0d1f8ff7666c210e0b0404fd9d7e6703" + +inherit native allarch + +SRC_URI = "git://git.kernel.org/pub/scm/linux/security/vulns.git;branch=master;protocol=https" +VULNS_USE_AUTOREV ?= "0" +VULNS_DEFAULT_SRCREV ?= "2c9b20d7a0699222b58c4824560b716b6096637b" + +python __anonymous () { + if d.getVar("VULNS_USE_AUTOREV") == "1": + d.setVar("SRCREV", d.getVar("AUTOREV")) + else: + d.setVar("SRCREV", d.getVar("VULNS_DEFAULT_SRCREV")) +} + +do_install(){ + install -d ${D}${datadir}/vulns-native + cp -r ${UNPACKDIR}/vulns-git/* ${D}${datadir}/vulns-native/ +}
This recipe is in charge of cloning and setting the Linux repository: https://git.kernel.org/pub/scm/linux/security/vulns.git/ The variable VULNS_USE_AUTOREV can be used to use AUTOREV to use the The latest available commit on the remote repository and stay up-to-date with the latest information available. AUTOREV would make the build non-deterministic, turned off by default. Signed-off-by: ValentinBoudevin <valentin.boudevin@gmail.com> --- .../vulns-native/vulns-native_git.bb | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta/recipes-kernel/vulns-native/vulns-native_git.bb