summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-02-04 14:13:37 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-06 09:37:26 +0000
commitfe4af0ac68f69b5a0243c9b44df85bcd4d4db4e1 (patch)
treea398a8e6eb8bde5d2554f9b75740c50641a3fa86
parentb2d06ba92924ff405160bc632e747f30b93f78a9 (diff)
downloadpoky-fe4af0ac68f69b5a0243c9b44df85bcd4d4db4e1.tar.gz
linux-yocto/dev: linux-yocto development tree tracking recipe
The linux-yocto-dev recipe uses the upstream tracking linux-yocto-dev repository. Since this tree is frequently updated, and periodically rebuilt, AUTOREV is used to track its contents. This recipe is just like other linux-yocto variants, with the only difference being that to avoid network access during initial parsing, static SRCREVs are provided and overridden if the preferred kernel provider is linux-yocto-dev. (From OE-Core rev: 378f99eeab070e2fcea84fb47f37cd7cb15caa90) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/linux/linux-yocto-dev.bb48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb
new file mode 100644
index 0000000000..fdea085b53
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb
@@ -0,0 +1,48 @@
1# This recipe tracks the linux-yocto-dev repository as its upstream source.
2# Since this tree is frequently updated, and periodically rebuilt, AUTOREV is
3# used to track its contents.
4#
5# This recipe is just like other linux-yocto variants, with the only difference
6# being that to avoid network access during initial parsing, static SRCREVs are
7# provided and overridden if the preferred kernel provider is linux-yocto-dev.
8#
9# To enable this recipe, set PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev"
10
11inherit kernel
12require recipes-kernel/linux/linux-yocto.inc
13
14KBRANCH = "standard/base"
15KBRANCH_DEFAULT = "${KBRANCH}"
16KMETA = "meta"
17
18SRC_URI = "git://git.pokylinux.org/linux-yocto-dev.git;protocol=git;nocheckout=1;branch=${KBRANCH},${KMETA};name=machine,meta"
19
20# Set default SRCREVs. Both the machine and meta SRCREVs are statically set
21# to the korg v3.7 tag, and hence prevent network access during parsing. If
22# linux-yocto-dev is the preferred provider, they will be overridden to
23# AUTOREV in following anonymous python routine and resolved when the
24# variables are finalized.
25SRCREV_machine="29594404d7fe73cd80eaa4ee8c43dcc53970c60e"
26SRCREV_meta="29594404d7fe73cd80eaa4ee8c43dcc53970c60e"
27
28python () {
29 if d.getVar("PREFERRED_PROVIDER_virtual/kernel", True) != "linux-yocto-dev":
30 raise bb.parse.SkipPackage("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-dev to enable it")
31 else:
32 d.setVar("SRCREV_machine", "${AUTOREV}")
33 d.setVar("SRCREV_meta", "${AUTOREV}")
34}
35
36LINUX_VERSION ?= "3.8+"
37LINUX_VERSION_EXTENSION ?= "-yoctodev-${LINUX_KERNEL_TYPE}"
38PR = "r0"
39PV = "${LINUX_VERSION}+git${SRCPV}"
40
41COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"
42
43# Functionality flags
44KERNEL_FEATURES_append = " features/netfilter/netfilter.scc"
45KERNEL_FEATURES_append_qemux86=" cfg/sound.scc"
46KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc"
47KERNEL_FEATURES_append_qemux86=" cfg/paravirt_kvm.scc"
48KERNEL_FEATURES_append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "" ,d)}"