summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2012-03-22 16:00:08 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-08 16:06:42 +0100
commit921e67bc820c6d05c1c7ece6a511a6a5e1add22f (patch)
tree3cb7c9f8a582f5516124e5ccb42b6c369271fcd0 /meta/recipes-kernel/linux
parent6636f840d42bf36a7e8b02aa548622a868affb2b (diff)
downloadpoky-921e67bc820c6d05c1c7ece6a511a6a5e1add22f.tar.gz
linux-yocto: streamline support for multiple upstream repo types
In order to support repositories of various types (with or without meta data, branched, pristine, custom, etc) information about the type of processing that is required was passed to the processing phases via variables. The combination of variables involved in coordinating the processing creates a learning curve and overly complicates recipe extensions. With minor tweaks to the kern-tools, adding flexibility and keying off the existence of the meta branch it is possible to remove all of the variables that were added to support different repository types. (From OE-Core rev: 06e5f45c8f38925cd5902a3a3f436f5e9451dd16) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/linux')
-rw-r--r--meta/recipes-kernel/linux/linux-yocto-rt_3.0.bb1
-rw-r--r--meta/recipes-kernel/linux/linux-yocto-rt_3.2.bb2
-rw-r--r--meta/recipes-kernel/linux/linux-yocto.inc7
-rw-r--r--meta/recipes-kernel/linux/linux-yocto_2.6.37.bb2
-rw-r--r--meta/recipes-kernel/linux/linux-yocto_3.0.bb23
-rw-r--r--meta/recipes-kernel/linux/linux-yocto_3.2.bb2
6 files changed, 25 insertions, 12 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_3.0.bb b/meta/recipes-kernel/linux/linux-yocto-rt_3.0.bb
index 36dcb6e67e..14af91dc31 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_3.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_3.0.bb
@@ -13,6 +13,7 @@ KBRANCH_qemuppc = "yocto/standard/preempt-rt/qemu-ppc32"
13 13
14LINUX_VERSION ?= "3.0.24" 14LINUX_VERSION ?= "3.0.24"
15LINUX_KERNEL_TYPE = "preempt-rt" 15LINUX_KERNEL_TYPE = "preempt-rt"
16KMETA = "meta"
16 17
17SRCREV_machine ?= "cf280f1dc5877d4ca43d21307222326efa68bb27" 18SRCREV_machine ?= "cf280f1dc5877d4ca43d21307222326efa68bb27"
18SRCREV_machine_qemuppc ?= "afaa5baa6a9ca9c8a03a9a3eee2ba9fba089f416" 19SRCREV_machine_qemuppc ?= "afaa5baa6a9ca9c8a03a9a3eee2ba9fba089f416"
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_3.2.bb b/meta/recipes-kernel/linux/linux-yocto-rt_3.2.bb
index 7e01efbc98..8ec366ceee 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_3.2.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_3.2.bb
@@ -14,6 +14,8 @@ KBRANCH_qemuppc = "standard/preempt-rt/qemu-ppc32"
14LINUX_VERSION ?= "3.2.11" 14LINUX_VERSION ?= "3.2.11"
15LINUX_KERNEL_TYPE = "preempt-rt" 15LINUX_KERNEL_TYPE = "preempt-rt"
16 16
17KMETA = "meta"
18
17SRCREV_machine ?= "3ebf4d172cf4a41d2abf09e4036f0850e08064e7" 19SRCREV_machine ?= "3ebf4d172cf4a41d2abf09e4036f0850e08064e7"
18SRCREV_machine_qemuppc ?= "7cebfe717987f4ffa9ae90558c28f45049847c1c" 20SRCREV_machine_qemuppc ?= "7cebfe717987f4ffa9ae90558c28f45049847c1c"
19SRCREV_meta ?= "6b3d4e09aa2531e9649f3f03827b7efbccfcec03" 21SRCREV_meta ?= "6b3d4e09aa2531e9649f3f03827b7efbccfcec03"
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
index 2b61b7e2cc..0912beef5a 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -9,15 +9,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
9# and it can be specific to the machine or shared 9# and it can be specific to the machine or shared
10# KMACHINE = "UNDEFINED" 10# KMACHINE = "UNDEFINED"
11 11
12# Set this to 'preempt_rt' in the local.conf if you want a real time kernel
13LINUX_KERNEL_TYPE ?= "standard" 12LINUX_KERNEL_TYPE ?= "standard"
14 13
15KMETA ?= "meta" 14# KMETA ?= ""
15KBRANCH ?= "master"
16KMACHINE ?= "${MACHINE}"
16SRCREV_FORMAT ?= "meta_machine" 17SRCREV_FORMAT ?= "meta_machine"
17 18
18LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}" 19LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
19KERNEL_REVISION_CHECKING ?= "t"
20YOCTO_KERNEL_META_DATA ?= "t"
21 20
22do_patch[depends] = "kern-tools-native:do_populate_sysroot" 21do_patch[depends] = "kern-tools-native:do_populate_sysroot"
23 22
diff --git a/meta/recipes-kernel/linux/linux-yocto_2.6.37.bb b/meta/recipes-kernel/linux/linux-yocto_2.6.37.bb
index d3da75cfc6..3968c62f38 100644
--- a/meta/recipes-kernel/linux/linux-yocto_2.6.37.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_2.6.37.bb
@@ -10,6 +10,8 @@ KMACHINE_qemuarm = "yocto/standard/arm-versatile-926ejs"
10 10
11KBRANCH = "${KMACHINE}" 11KBRANCH = "${KMACHINE}"
12 12
13KMETA = "meta"
14
13LINUX_VERSION ?= "2.6.37" 15LINUX_VERSION ?= "2.6.37"
14 16
15SRCREV_machine_qemuarm = "b3e53a090eaa23aa82e64fa0a563a93a2b4dbb5d" 17SRCREV_machine_qemuarm = "b3e53a090eaa23aa82e64fa0a563a93a2b4dbb5d"
diff --git a/meta/recipes-kernel/linux/linux-yocto_3.0.bb b/meta/recipes-kernel/linux/linux-yocto_3.0.bb
index 074b1ede95..82a7224251 100644
--- a/meta/recipes-kernel/linux/linux-yocto_3.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_3.0.bb
@@ -1,14 +1,21 @@
1inherit kernel 1inherit kernel
2require recipes-kernel/linux/linux-yocto.inc 2require recipes-kernel/linux/linux-yocto.inc
3 3
4KMACHINE = "yocto/standard/base" 4KBRANCH = "yocto/standard/base"
5KMACHINE_qemux86 = "yocto/standard/common-pc/base" 5KBRANCH_qemux86 = "yocto/standard/common-pc/base"
6KMACHINE_qemux86-64 = "yocto/standard/common-pc-64/base" 6KBRANCH_qemux86-64 = "yocto/standard/common-pc-64/base"
7KMACHINE_qemuppc = "yocto/standard/qemu-ppc32" 7KBRANCH_qemuppc = "yocto/standard/qemu-ppc32"
8KMACHINE_qemumips = "yocto/standard/mti-malta32-be" 8KBRANCH_qemumips = "yocto/standard/mti-malta32-be"
9KMACHINE_qemuarm = "yocto/standard/arm-versatile-926ejs" 9KBRANCH_qemuarm = "yocto/standard/arm-versatile-926ejs"
10 10
11KBRANCH = "${KMACHINE}" 11# Temporary until 3.0 kernel tree is updated with machine mappings
12KMACHINE_qemux86 = "common-pc"
13KMACHINE_qemux86-64 = "common-pc-64"
14KMACHINE_qemuppc = "qemu-ppc32"
15KMACHINE_qemumips = "mti-malta32-be"
16KMACHINE_qemuarm = "arm-versatile-926ejs"
17
18KMETA = "meta"
12 19
13LINUX_VERSION ?= "3.0.24" 20LINUX_VERSION ?= "3.0.24"
14 21
diff --git a/meta/recipes-kernel/linux/linux-yocto_3.2.bb b/meta/recipes-kernel/linux/linux-yocto_3.2.bb
index 51119bb201..71290bddd4 100644
--- a/meta/recipes-kernel/linux/linux-yocto_3.2.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_3.2.bb
@@ -28,6 +28,8 @@ SRCREV_meta ?= "6b3d4e09aa2531e9649f3f03827b7efbccfcec03"
28PR = "r1" 28PR = "r1"
29PV = "${LINUX_VERSION}+git${SRCPV}" 29PV = "${LINUX_VERSION}+git${SRCPV}"
30 30
31KMETA = "meta"
32
31SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.2;protocol=git;bareclone=1;branch=${KBRANCH},meta;name=machine,meta" 33SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.2;protocol=git;bareclone=1;branch=${KBRANCH},meta;name=machine,meta"
32 34
33COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)" 35COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"