diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-rt_2.6.34.bb | 44 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-rt_3.0.bb | 46 | ||||
-rw-r--r-- | meta/recipes-rt/images/core-image-rt-sdk.bb | 15 | ||||
-rw-r--r-- | meta/recipes-rt/images/core-image-rt.bb | 12 | ||||
-rw-r--r-- | meta/recipes-rt/rt-tests/rt-tests_0.73.bb | 22 |
5 files changed, 139 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_2.6.34.bb b/meta/recipes-kernel/linux/linux-yocto-rt_2.6.34.bb new file mode 100644 index 0000000000..0ca53ae436 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto-rt_2.6.34.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | inherit kernel | ||
2 | require recipes-kernel/linux/linux-yocto.inc | ||
3 | |||
4 | KMACHINE = "common-pc" | ||
5 | KMACHINE_qemux86 = "common_pc" | ||
6 | KMACHINE_qemux86-64 = "common_pc_64" | ||
7 | |||
8 | LINUX_VERSION ?= "2.6.34" | ||
9 | LINUX_KERNEL_TYPE = "preempt_rt" | ||
10 | LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE_EXTENSION}" | ||
11 | |||
12 | KMETA = wrs_meta | ||
13 | KBRANCH = ${KMACHINE}-${LINUX_KERNEL_TYPE} | ||
14 | |||
15 | SRCREV_machine_qemux86 = "439602eb6acd53d9beb8493710310214fc7bd749" | ||
16 | SRCREV_machine_qemux86-64 = "3c84c45ad3c3592f9c7ff4076de9bee417cd322e" | ||
17 | SRCREV_machine = "439602eb6acd53d9beb8493710310214fc7bd749" | ||
18 | SRCREV_meta = "e1f85a470934a0cf6abde5d95533e74501822c6b" | ||
19 | |||
20 | PR = "r2" | ||
21 | PV = "${LINUX_VERSION}+git${SRCPV}" | ||
22 | SRCREV_FORMAT = "meta_machine" | ||
23 | |||
24 | COMPATIBLE_MACHINE = "(qemux86|qemux86-64)" | ||
25 | |||
26 | # this performs a fixup on the SRCREV for new/undefined BSPs | ||
27 | python __anonymous () { | ||
28 | import bb, re, string | ||
29 | |||
30 | kerntype = string.replace(bb.data.expand("${LINUX_KERNEL_TYPE}", d), "_", "-") | ||
31 | bb.data.setVar("LINUX_KERNEL_TYPE_EXTENSION", kerntype, d) | ||
32 | } | ||
33 | |||
34 | SRC_URI = "git://git.yoctoproject.org/linux-yocto-2.6.34.git;protocol=git;nocheckout=1;branch=${KBRANCH},wrs_meta;name=machine,meta" | ||
35 | |||
36 | # Functionality flags | ||
37 | KERNEL_REVISION_CHECKING ?= "t" | ||
38 | KERNEL_FEATURES=features/netfilter | ||
39 | |||
40 | # extra tasks | ||
41 | addtask kernel_link_vmlinux after do_compile before do_install | ||
42 | addtask validate_branches before do_patch after do_kernel_checkout | ||
43 | |||
44 | require recipes-kernel/linux/linux-tools.inc | ||
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_3.0.bb b/meta/recipes-kernel/linux/linux-yocto-rt_3.0.bb new file mode 100644 index 0000000000..c8a175dad8 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto-rt_3.0.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | inherit kernel | ||
2 | require recipes-kernel/linux/linux-yocto.inc | ||
3 | |||
4 | KMACHINE = "common-pc" | ||
5 | KMACHINE_qemux86 = "common-pc" | ||
6 | KMACHINE_qemux86-64 = "common-pc-64" | ||
7 | KMACHINE_qemuarm = "arm-versatile-926ejs" | ||
8 | KMACHINE_qemuppc = "qemu-ppc32" | ||
9 | KMACHINE_qemumips = "mti-malta32-be" | ||
10 | |||
11 | KBRANCH = "yocto/standard/preempt-rt/base" | ||
12 | KMETA = meta | ||
13 | |||
14 | LINUX_VERSION ?= "3.0" | ||
15 | LINUX_KERNEL_TYPE = "preempt-rt" | ||
16 | LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}" | ||
17 | |||
18 | SRCREV_machine = "7e1e5b6c8a13c615feb0d7b6d37988a094aae98f" | ||
19 | SRCREV_meta = "7782fc673afd6a1c742409896ae787560d96fce8" | ||
20 | |||
21 | PR = "r0" | ||
22 | PV = "${LINUX_VERSION}+git${SRCPV}" | ||
23 | SRCREV_FORMAT = "meta_machine" | ||
24 | |||
25 | SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.0.git;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta" | ||
26 | |||
27 | # Omit broken machines from COMPATIBLE_MACHINE | ||
28 | # qemuppc hangs at boot | ||
29 | # qemumips panics at boot | ||
30 | COMPATIBLE_MACHINE = "(qemux86|qemux86-64|qemuarm)" | ||
31 | |||
32 | # Functionality flags | ||
33 | KERNEL_REVISION_CHECKING ?= "t" | ||
34 | KERNEL_FEATURES=features/netfilter | ||
35 | KERNEL_FEATURES_append=" features/taskstats" | ||
36 | KERNEL_FEATURES_append_qemux86=" cfg/sound" | ||
37 | KERNEL_FEATURES_append_qemux86-64=" cfg/sound" | ||
38 | |||
39 | YOCTO_KERNEL_META_DATA=t | ||
40 | |||
41 | # extra tasks | ||
42 | addtask kernel_link_vmlinux after do_compile before do_install | ||
43 | addtask validate_branches before do_patch after do_kernel_checkout | ||
44 | addtask kernel_configcheck after do_configure before do_compile | ||
45 | |||
46 | require recipes-kernel/linux/linux-tools.inc | ||
diff --git a/meta/recipes-rt/images/core-image-rt-sdk.bb b/meta/recipes-rt/images/core-image-rt-sdk.bb new file mode 100644 index 0000000000..6e983433aa --- /dev/null +++ b/meta/recipes-rt/images/core-image-rt-sdk.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | # | ||
2 | # Copyright (C) 2011 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Real-Time Linux Image with SDK support" | ||
6 | DEPENDS = "linux-yocto-rt" | ||
7 | |||
8 | require recipes-core/images/core-image-minimal.bb | ||
9 | |||
10 | IMAGE_FEATURES += "dev-pkgs tools-sdk" | ||
11 | EXTRA_IMAGE_FEATURES += "tools-debug tools-profile tools-testapps debug-tweaks" | ||
12 | |||
13 | IMAGE_INSTALL += "rt-tests" | ||
14 | |||
15 | LICENSE = "MIT" | ||
diff --git a/meta/recipes-rt/images/core-image-rt.bb b/meta/recipes-rt/images/core-image-rt.bb new file mode 100644 index 0000000000..e11f159f7a --- /dev/null +++ b/meta/recipes-rt/images/core-image-rt.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | # | ||
2 | # Copyright (C) 2010 Intel Corporation. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Real-Time Linux Image" | ||
6 | DEPENDS = "linux-yocto-rt" | ||
7 | |||
8 | require recipes-core/images/core-image-minimal.bb | ||
9 | |||
10 | IMAGE_INSTALL += "rt-tests" | ||
11 | |||
12 | LICENSE = "MIT" | ||
diff --git a/meta/recipes-rt/rt-tests/rt-tests_0.73.bb b/meta/recipes-rt/rt-tests/rt-tests_0.73.bb new file mode 100644 index 0000000000..6334bcdeef --- /dev/null +++ b/meta/recipes-rt/rt-tests/rt-tests_0.73.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | DESCRIPTION = "Real-Time preemption testcases" | ||
2 | HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Cyclictest" | ||
3 | SECTION = "tests" | ||
4 | DEPENDS = "linux-libc-headers eglibc" | ||
5 | LICENSE = "GPLv2 & GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | ||
7 | file://src/cyclictest/cyclictest.c;beginline=7;endline=9;md5=ce162fe491d19d2ec67dff6dbc938d50 \ | ||
8 | file://src/pi_tests/pi_stress.c;beginline=6;endline=19;md5=bd426a634a43ec612e9fbf125dfcc949" | ||
9 | SRCREV = v0.73 | ||
10 | PV = "git${SRCPV}" | ||
11 | PR = "r0" | ||
12 | |||
13 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git;protocol=git" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | CFLAGS += "-I${S}/src/include -D_GNU_SOURCE -Wall -Wno-nonnull" | ||
18 | |||
19 | do_install() { | ||
20 | oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \ | ||
21 | INCLUDEDIR=${includedir} | ||
22 | } | ||