diff options
author | Saul Wold <sgw@linux.intel.com> | 2017-04-14 09:51:39 -0700 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2017-04-17 10:11:00 -0700 |
commit | 45bd09ccc2fe6675079979579ba22740e161ccbb (patch) | |
tree | d2f57c82407f0b8506f3cbf522accdd6c8458fa3 /common/recipes-kernel | |
parent | b275a11389f3fd8366b1947450a75a546417a5b0 (diff) | |
download | meta-intel-45bd09ccc2fe6675079979579ba22740e161ccbb.tar.gz |
linux-intel-rt: Add recipe to support preempt-rt kernel
This adds the linux-intel production kernel to meta-intel with
the base-rt branch.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'common/recipes-kernel')
-rw-r--r-- | common/recipes-kernel/linux/linux-intel-rt_4.9.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-intel-rt_4.9.bb b/common/recipes-kernel/linux/linux-intel-rt_4.9.bb new file mode 100644 index 00000000..ab723cca --- /dev/null +++ b/common/recipes-kernel/linux/linux-intel-rt_4.9.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | |||
2 | require recipes-kernel/linux/linux-yocto.inc | ||
3 | |||
4 | # Skip processing of this recipe if it is not explicitly specified as the | ||
5 | # PREFERRED_PROVIDER for virtual/kernel. This avoids errors when trying | ||
6 | # to build multiple virtual/kernel providers, e.g. as dependency of | ||
7 | # core-image-rt-sdk, core-image-rt. | ||
8 | python () { | ||
9 | if d.getVar("PREFERRED_PROVIDER_virtual/kernel") != "linux-intel-rt": | ||
10 | raise bb.parse.SkipPackage("Set PREFERRED_PROVIDER_virtual/kernel to linux-intel-rt to enable it") | ||
11 | } | ||
12 | |||
13 | KBRANCH = "base-rt" | ||
14 | SRCREV_machine ?= "847b27d4831aa7271ec0ffc4c41cfca46491a305" | ||
15 | SRCREV_meta ?= "803b8d600e45afa0375459bf599fe365571a3866" | ||
16 | |||
17 | SRC_URI = "git://github.com/01org/linux-intel-4.9.git;protocol=https;name=machine;branch=${KBRANCH}; \ | ||
18 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}" | ||
19 | |||
20 | LINUX_VERSION ?= "4.9.20" | ||
21 | |||
22 | PV = "${LINUX_VERSION}+git${SRCPV}" | ||
23 | |||
24 | KMETA = "kernel-meta" | ||
25 | KCONF_BSP_AUDIT_LEVEL = "2" | ||
26 | |||
27 | LINUX_KERNEL_TYPE = "preempt-rt" | ||
28 | KERNEL_FEATURES_INTEL_COMMON = "" | ||
29 | |||
30 | COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}" | ||
31 | KMACHINE_core2-32-intel-common = "intel-core2-32" | ||
32 | KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}" | ||
33 | |||
34 | COMPATIBLE_MACHINE_corei7-64-intel-common = "${MACHINE}" | ||
35 | KMACHINE_corei7-64-intel-common = "intel-corei7-64" | ||
36 | KERNEL_FEATURES_append_corei7-64-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}" | ||
37 | |||
38 | COMPATIBLE_MACHINE_i586-nlp-32-intel-common = "${MACHINE}" | ||
39 | KMACHINE_i586-nlp-32-intel-common = "intel-quark" | ||
40 | KERNEL_FEATURES_append_i586-nlp-32-intel-common = "" | ||