When making changes to kernel.bbclass, it would be nice not to have to
manually change the PR of every linux-yocto*.bb file that requires it.
Move the "require kernel" line to linux-yocto.inc and update the
linux-yocto recipes to use INC_PR.
(From OE-Core rev:
7a41d96c946029aeec03cd26f326bc6ca26e74fd)
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Bruce Ashfield <bruce.ashfield@windriver.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-inherit kernel
require recipes-kernel/linux/linux-yocto.inc
KBRANCH = "yocto/standard/preempt-rt/base"
SRCREV_machine_qemuppc ?= "dcca458cb92cc287f70e4062f02460f36a881b16"
SRCREV_meta ?= "d282029891bba5440630a885b940dea5e34e3e2c"
-PR = "r2"
+PR = "${INC_PR}.0"
PV = "${LINUX_VERSION}+git${SRCPV}"
SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.0.git;protocol=git;bareclone=1;branch=${KBRANCH},meta;name=machine,meta"
-inherit kernel
require recipes-kernel/linux/linux-yocto.inc
KBRANCH = "standard/preempt-rt/base"
SRCREV_machine_qemuppc ?= "d7020ba154df03cba5351011ff664f5e3e1ce678"
SRCREV_meta ?= "ee78519365bdb25287703bbc31c06b193263c654"
-PR = "r1"
+PR = "${INC_PR}.0"
PV = "${LINUX_VERSION}+git${SRCPV}"
SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.2.git;protocol=git;bareclone=1;branch=${KBRANCH},meta;name=machine,meta"
-inherit kernel
require recipes-kernel/linux/linux-yocto.inc
KBRANCH = "standard/preempt-rt/base"
SRCREV_machine_qemuppc ?= "83843542dd524007547eddba507690cd4bab393b"
SRCREV_meta ?= "d65afd9e42230a3ef4cc1f9ad62d0aa84a533cd0"
-PR = "r0"
+PR = "${INC_PR}.0"
PV = "${LINUX_VERSION}+git${SRCPV}"
SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.4.git;protocol=git;bareclone=1;branch=${KBRANCH},meta;name=machine,meta"
-inherit kernel
require recipes-kernel/linux/linux-yocto.inc
# We need lzma (as CONFIG_KERNEL_LZMA=y)
SRCREV_machine ?= "27b68a93eb791e830da8d3a2c0fc99780897ad89"
SRCREV_meta ?= "ee78519365bdb25287703bbc31c06b193263c654"
-PR = "r0"
+PR = "${INC_PR}.0"
PV = "${LINUX_VERSION}+git${SRCPV}"
SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.2;protocol=git;bareclone=1;branch=${KBRANCH},meta;name=machine,meta"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+INC_PR = "r3"
+
# A KMACHINE is the mapping of a yocto $MACHINE to what is built
# by the kernel. This is typically the branch that should be built,
# and it can be specific to the machine or shared
addtask kernel_configme before do_configure after do_patch
# Pick up shared functions
+inherit kernel
inherit kernel-yocto
require linux-dtb.inc
-inherit kernel
require recipes-kernel/linux/linux-yocto.inc
KBRANCH = "yocto/standard/base"
SRCREV_machine ?= "bd6ad607c754dea30d91502a237870b4c45e0f1b"
SRCREV_meta ?= "d282029891bba5440630a885b940dea5e34e3e2c"
-PR = "r4"
+PR = "${INC_PR}.0"
PV = "${LINUX_VERSION}+git${SRCPV}"
SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;bareclone=1;branch=${KBRANCH},meta;name=machine,meta"
-inherit kernel
require recipes-kernel/linux/linux-yocto.inc
KBRANCH = "standard/default/base"
SRCREV_machine ?= "76133a1cadf0de417c29ed15d6fbb12c41c0802b"
SRCREV_meta ?= "ee78519365bdb25287703bbc31c06b193263c654"
-PR = "r1"
+PR = "${INC_PR}.0"
PV = "${LINUX_VERSION}+git${SRCPV}"
KMETA = "meta"
-inherit kernel
require recipes-kernel/linux/linux-yocto.inc
KBRANCH = "standard/base"
LINUX_VERSION ?= "3.4.3"
-PR = "r0"
+PR = "${INC_PR}.0"
PV = "${LINUX_VERSION}+git${SRCPV}"
KMETA = "meta"