summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-yocto.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/linux/linux-yocto.inc')
-rw-r--r--meta/recipes-kernel/linux/linux-yocto.inc45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
new file mode 100644
index 0000000000..4ed318886f
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -0,0 +1,45 @@
1DESCRIPTION = "Yocto Kernel"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
5LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
6
7INC_PR = "r4"
8
9DEPENDS += "xz-native bc-native"
10
11# A KMACHINE is the mapping of a yocto $MACHINE to what is built
12# by the kernel. This is typically the branch that should be built,
13# and it can be specific to the machine or shared
14# KMACHINE = "UNDEFINED"
15
16LINUX_KERNEL_TYPE ?= "standard"
17
18# KMETA ?= ""
19KBRANCH ?= "master"
20KMACHINE ?= "${MACHINE}"
21SRCREV_FORMAT ?= "meta_machine"
22
23LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
24
25do_patch[depends] = "kern-tools-native:do_populate_sysroot"
26
27addtask kernel_configme before do_configure after do_patch
28
29# Pick up shared functions
30inherit kernel
31inherit kernel-yocto
32require linux-dtb.inc
33
34B = "${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build"
35
36do_install_append(){
37 if [ -n "${KMETA}" ]; then
38 rm -rf ${STAGING_KERNEL_DIR}/${KMETA}
39 fi
40}
41
42# extra tasks
43addtask kernel_link_vmlinux after do_compile before do_install
44addtask validate_branches before do_patch after do_kernel_checkout
45addtask kernel_configcheck after do_configure before do_compile