diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-12-05 14:31:55 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-14 09:11:15 +0000 |
commit | 4bb18c41e8537531bd8f8749f320fa6ddc35e398 (patch) | |
tree | 98104ed3cea3a6310671004a3a482998fb4a0a62 | |
parent | db4961ba7fde74e408b031b1464064398a7fd0e4 (diff) | |
download | poky-4bb18c41e8537531bd8f8749f320fa6ddc35e398.tar.gz |
linux-yocto-dev: allow static SRCREVs via include
The linux-yocto dev recipe is intended to track the latest revisions of the
kernel tree by default. To control revision churn, and integrate into a
regular build schedule having the ability to specify a set of SRCREVs without
modifying the recipe itself is desired.
So we introduce an optional include file, and variables that control whether
or not the static SRCREVs are used: USE_MACHINE_AUTOREV and USE_META_AUTOREV,
to add this flexibility.
(From OE-Core rev: 5877781d1dcb2883d00097b66ff2481a4a5ff930)
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.bb | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb index e7b8d8b2a7..e8d14b966d 100644 --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb | |||
@@ -11,6 +11,12 @@ | |||
11 | inherit kernel | 11 | inherit kernel |
12 | require recipes-kernel/linux/linux-yocto.inc | 12 | require recipes-kernel/linux/linux-yocto.inc |
13 | 13 | ||
14 | USE_MACHINE_AUTOREV ?= "1" | ||
15 | USE_META_AUTOREV ?= "1" | ||
16 | |||
17 | # provide this .inc to set specific revisions | ||
18 | include recipes-kernel/linux/linux-yocto-dev-revisions.inc | ||
19 | |||
14 | KBRANCH = "standard/base" | 20 | KBRANCH = "standard/base" |
15 | KBRANCH_DEFAULT = "${KBRANCH}" | 21 | KBRANCH_DEFAULT = "${KBRANCH}" |
16 | KMETA = "meta" | 22 | KMETA = "meta" |
@@ -22,15 +28,19 @@ SRC_URI = "git://git.pokylinux.org/linux-yocto-dev.git;nocheckout=1;branch=${KBR | |||
22 | # linux-yocto-dev is the preferred provider, they will be overridden to | 28 | # linux-yocto-dev is the preferred provider, they will be overridden to |
23 | # AUTOREV in following anonymous python routine and resolved when the | 29 | # AUTOREV in following anonymous python routine and resolved when the |
24 | # variables are finalized. | 30 | # variables are finalized. |
25 | SRCREV_machine="29594404d7fe73cd80eaa4ee8c43dcc53970c60e" | 31 | SRCREV_machine ?= "29594404d7fe73cd80eaa4ee8c43dcc53970c60e" |
26 | SRCREV_meta="29594404d7fe73cd80eaa4ee8c43dcc53970c60e" | 32 | SRCREV_meta ?= "29594404d7fe73cd80eaa4ee8c43dcc53970c60e" |
27 | 33 | ||
28 | python () { | 34 | python () { |
29 | if d.getVar("PREFERRED_PROVIDER_virtual/kernel", True) != "linux-yocto-dev": | 35 | 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") | 36 | raise bb.parse.SkipPackage("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-dev to enable it") |
31 | else: | 37 | else: |
32 | d.setVar("SRCREV_machine", "${AUTOREV}") | 38 | # if the revisions have been changed from the defaults above we leave them |
33 | d.setVar("SRCREV_meta", "${AUTOREV}") | 39 | # alone. But if the defaults are left, we change to AUTOREV. |
40 | if d.getVar("USE_MACHINE_AUTOREV", True) == "1": | ||
41 | d.setVar("SRCREV_machine", "${AUTOREV}") | ||
42 | if d.getVar("USE_META_AUTOREV", True) == "1": | ||
43 | d.setVar("SRCREV_meta", "${AUTOREV}") | ||
34 | } | 44 | } |
35 | 45 | ||
36 | LINUX_VERSION ?= "3.10+" | 46 | LINUX_VERSION ?= "3.10+" |
@@ -40,8 +50,9 @@ PV = "${LINUX_VERSION}+git${SRCPV}" | |||
40 | COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemumips64|qemux86-64)" | 50 | COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemumips64|qemux86-64)" |
41 | 51 | ||
42 | # Functionality flags | 52 | # Functionality flags |
43 | KERNEL_FEATURES_append = " features/netfilter/netfilter.scc" | 53 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc" |
44 | KERNEL_FEATURES_append_qemux86=" cfg/sound.scc" | 54 | KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}" |
55 | KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
45 | KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc" | 56 | KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc" |
46 | KERNEL_FEATURES_append_qemux86=" cfg/paravirt_kvm.scc" | ||
47 | KERNEL_FEATURES_append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "" ,d)}" | 57 | KERNEL_FEATURES_append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "" ,d)}" |
58 | |||