diff options
Diffstat (limited to 'meta/recipes-kernel/linux/linux-yocto.inc')
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto.inc | 45 |
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 @@ | |||
1 | DESCRIPTION = "Yocto Kernel" | ||
2 | SECTION = "kernel" | ||
3 | LICENSE = "GPLv2" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
6 | |||
7 | INC_PR = "r4" | ||
8 | |||
9 | DEPENDS += "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 | |||
16 | LINUX_KERNEL_TYPE ?= "standard" | ||
17 | |||
18 | # KMETA ?= "" | ||
19 | KBRANCH ?= "master" | ||
20 | KMACHINE ?= "${MACHINE}" | ||
21 | SRCREV_FORMAT ?= "meta_machine" | ||
22 | |||
23 | LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}" | ||
24 | |||
25 | do_patch[depends] = "kern-tools-native:do_populate_sysroot" | ||
26 | |||
27 | addtask kernel_configme before do_configure after do_patch | ||
28 | |||
29 | # Pick up shared functions | ||
30 | inherit kernel | ||
31 | inherit kernel-yocto | ||
32 | require linux-dtb.inc | ||
33 | |||
34 | B = "${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build" | ||
35 | |||
36 | do_install_append(){ | ||
37 | if [ -n "${KMETA}" ]; then | ||
38 | rm -rf ${STAGING_KERNEL_DIR}/${KMETA} | ||
39 | fi | ||
40 | } | ||
41 | |||
42 | # extra tasks | ||
43 | addtask kernel_link_vmlinux after do_compile before do_install | ||
44 | addtask validate_branches before do_patch after do_kernel_checkout | ||
45 | addtask kernel_configcheck after do_configure before do_compile | ||