diff options
author | Paul Barker <pbarker@konsulko.com> | 2020-02-06 12:35:47 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-08 13:20:01 +0000 |
commit | de2ef0120432cba343452151e86cbc3c99876524 (patch) | |
tree | ccc5b6306506d62eaf11f47e0ac87c414ae5da3b /meta/classes/kernel-yocto.bbclass | |
parent | caac8938fe2b46828d7d8234ecc52f837df4da03 (diff) | |
download | poky-de2ef0120432cba343452151e86cbc3c99876524.tar.gz |
kernel-yocto: Move defaults and tasks from linux-yocto.inc into bbclass
This allows the kernel-yocto bbclass to be inherited in a recipe without
needing to include linux-yocto.inc. The bbclass should stand on its own
and linux-yocto.inc does a few things which may not be desired in other
kernel recipes (such as modifying KERNEL_FEATURES).
The LINUX_VERSION_EXTENSION default is not moved as other kernel recipes
may not want this setting in place.
(From OE-Core rev: 48d8f97975c0b167c0f4f32145813f00b8c8a7a8)
Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index 141eeafeb9..a0362f6acb 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
@@ -3,6 +3,22 @@ SRCTREECOVEREDTASKS += "do_kernel_configme do_validate_branches do_kernel_config | |||
3 | PATCH_GIT_USER_EMAIL ?= "kernel-yocto@oe" | 3 | PATCH_GIT_USER_EMAIL ?= "kernel-yocto@oe" |
4 | PATCH_GIT_USER_NAME ?= "OpenEmbedded" | 4 | PATCH_GIT_USER_NAME ?= "OpenEmbedded" |
5 | 5 | ||
6 | # The distro or local.conf should set this, but if nobody cares... | ||
7 | LINUX_KERNEL_TYPE ??= "standard" | ||
8 | |||
9 | # KMETA ?= "" | ||
10 | KBRANCH ?= "master" | ||
11 | KMACHINE ?= "${MACHINE}" | ||
12 | SRCREV_FORMAT ?= "meta_machine" | ||
13 | |||
14 | # LEVELS: | ||
15 | # 0: no reporting | ||
16 | # 1: report options that are specified, but not in the final config | ||
17 | # 2: report options that are not hardware related, but set by a BSP | ||
18 | KCONF_AUDIT_LEVEL ?= "1" | ||
19 | KCONF_BSP_AUDIT_LEVEL ?= "0" | ||
20 | KMETA_AUDIT ?= "yes" | ||
21 | |||
6 | # returns local (absolute) path names for all valid patches in the | 22 | # returns local (absolute) path names for all valid patches in the |
7 | # src_uri | 23 | # src_uri |
8 | def find_patches(d,subdir): | 24 | def find_patches(d,subdir): |
@@ -475,3 +491,8 @@ python () { | |||
475 | if 'do_diffconfig' in d: | 491 | if 'do_diffconfig' in d: |
476 | bb.build.addtask('do_diffconfig', None, 'do_kernel_configme', d) | 492 | bb.build.addtask('do_diffconfig', None, 'do_kernel_configme', d) |
477 | } | 493 | } |
494 | |||
495 | # extra tasks | ||
496 | addtask kernel_version_sanity_check after do_kernel_metadata do_kernel_checkout before do_compile | ||
497 | addtask validate_branches before do_patch after do_kernel_checkout | ||
498 | addtask kernel_configcheck after do_configure before do_compile | ||