diff options
Diffstat (limited to 'meta/recipes-kernel/linux/linux-yocto.inc')
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto.inc | 23 |
1 files changed, 23 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..095b3375fa --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto.inc | |||
@@ -0,0 +1,23 @@ | |||
1 | DESCRIPTION = "Yocto Kernel" | ||
2 | SECTION = "kernel" | ||
3 | LICENSE = "GPL" | ||
4 | |||
5 | # A KMACHINE is the mapping of a yocto $MACHINE to what is built | ||
6 | # by the kernel. This is typically the branch that should be built, | ||
7 | # and it can be specific to the machine or shared | ||
8 | KMACHINE = "UNDEFINED" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64|atom-pc|routerstationpro)" | ||
11 | |||
12 | # Set this to 'preempt_rt' in the local.conf if you want a real time kernel | ||
13 | LINUX_KERNEL_TYPE ?= standard | ||
14 | |||
15 | do_patch[depends] = "kern-tools-native:do_populate_sysroot" | ||
16 | |||
17 | addtask kernel_configme before do_configure after do_patch | ||
18 | addtask kernel_configcheck after do_configure before do_compile | ||
19 | |||
20 | # Pick up shared functions | ||
21 | inherit kernel-yocto | ||
22 | |||
23 | B = "${WORKDIR}/linux-${KMACHINE}-${LINUX_KERNEL_TYPE}-build" | ||