summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-yocto.inc
diff options
context:
space:
mode:
authorPaul Barker <pbarker@konsulko.com>2020-02-06 12:35:47 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-08 13:20:01 +0000
commitde2ef0120432cba343452151e86cbc3c99876524 (patch)
treeccc5b6306506d62eaf11f47e0ac87c414ae5da3b /meta/recipes-kernel/linux/linux-yocto.inc
parentcaac8938fe2b46828d7d8234ecc52f837df4da03 (diff)
downloadpoky-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/recipes-kernel/linux/linux-yocto.inc')
-rw-r--r--meta/recipes-kernel/linux/linux-yocto.inc21
1 files changed, 0 insertions, 21 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
index f191946f2a..91df9c1cd5 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -39,22 +39,6 @@ KERNEL_FEATURES_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'numa', 'fea
39# and it can be specific to the machine or shared 39# and it can be specific to the machine or shared
40# KMACHINE = "UNDEFINED" 40# KMACHINE = "UNDEFINED"
41 41
42# The distro or local.conf should set this, but if nobody cares...
43LINUX_KERNEL_TYPE ??= "standard"
44
45# KMETA ?= ""
46KBRANCH ?= "master"
47KMACHINE ?= "${MACHINE}"
48SRCREV_FORMAT ?= "meta_machine"
49
50# LEVELS:
51# 0: no reporting
52# 1: report options that are specified, but not in the final config
53# 2: report options that are not hardware related, but set by a BSP
54KCONF_AUDIT_LEVEL ?= "1"
55KCONF_BSP_AUDIT_LEVEL ?= "0"
56KMETA_AUDIT ?= "yes"
57
58LINUX_VERSION_EXTENSION ??= "-yocto-${LINUX_KERNEL_TYPE}" 42LINUX_VERSION_EXTENSION ??= "-yocto-${LINUX_KERNEL_TYPE}"
59 43
60# Pick up shared functions 44# Pick up shared functions
@@ -69,10 +53,5 @@ do_install_append(){
69 fi 53 fi
70} 54}
71 55
72# extra tasks
73addtask kernel_version_sanity_check after do_kernel_metadata do_kernel_checkout before do_compile
74addtask validate_branches before do_patch after do_kernel_checkout
75addtask kernel_configcheck after do_configure before do_compile
76
77# enable kernel-sample for oeqa/runtime/cases's ksample.py test 56# enable kernel-sample for oeqa/runtime/cases's ksample.py test
78KERNEL_FEATURES_append_qemuall=" features/kernel-sample/kernel-sample.scc" 57KERNEL_FEATURES_append_qemuall=" features/kernel-sample/kernel-sample.scc"