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 <[email protected]> --- .../vulns-native/vulns-native_git.bb | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta/recipes-kernel/vulns-native/vulns-native_git.bb 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/ +}
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#230102): https://lists.openembedded.org/g/openembedded-core/message/230102 Mute This Topic: https://lists.openembedded.org/mt/117510776/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
