diff options
| author | Mikko Rapeli <mikko.rapeli@bmw.de> | 2017-07-20 16:23:10 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-29 11:57:28 +0100 |
| commit | 279e22c16b293c3bee333e313364a8be2ecba233 (patch) | |
| tree | 073a9064ace662273845f76afd6bf2fabd6f188f /meta | |
| parent | 24b0fa7324843681de12d770d9bf134af3f7974d (diff) | |
| download | poky-279e22c16b293c3bee333e313364a8be2ecba233.tar.gz | |
kernel.bbclass: set CVE_PRODUCT to linux_kernel if not set by recipe
It is used by NVD database CVE's like:
https://nvd.nist.gov/vuln/detail/CVE-2017-7273
Setting this in kernel.bbclass fixes CVE reporting for all users of
the class.
(From OE-Core rev: 9b27be77980fdd51423576712dfd6f4a031c3372)
Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 2e3d325440a50265c73f7d2e782530a02458bc33)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes/kernel.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 7a134d5c29..cfa61e60de 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
| @@ -6,6 +6,8 @@ PACKAGE_WRITE_DEPS += "depmodwrapper-cross virtual/update-alternatives-native" | |||
| 6 | 6 | ||
| 7 | do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot" | 7 | do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot" |
| 8 | 8 | ||
| 9 | CVE_PRODUCT ?= "linux_kernel" | ||
| 10 | |||
| 9 | S = "${STAGING_KERNEL_DIR}" | 11 | S = "${STAGING_KERNEL_DIR}" |
| 10 | B = "${WORKDIR}/build" | 12 | B = "${WORKDIR}/build" |
| 11 | KBUILD_OUTPUT = "${B}" | 13 | KBUILD_OUTPUT = "${B}" |
