One might wonder why there isn't just a stable-5.x to encompass all of these, but by having them separate, we can retire/EOL them individually without disruption.
Note that references are a "round up" to the nearest kernel recipe containing the stable baseline - so stable-5.4 references linux-5.10 as we didn't specifically call out linux-5.4 as an independent recipe. Also, stable-5.12 doesn't exist yet, but we know it will, so we insert a placeholder in for it, so that v5.12-rt can reference it w/o future change; we just switch the one line in stable-5.12 once it exists. Signed-off-by: Paul Gortmaker <paul.gortma...@windriver.com> --- meta/recipes-kernel/linux/fetch-stable.inc | 24 ++++++++++++++++++++++ meta/recipes-kernel/linux/stable-5.10.bb | 10 +++++++++ meta/recipes-kernel/linux/stable-5.12.bb | 16 +++++++++++++++ meta/recipes-kernel/linux/stable-5.4.bb | 11 ++++++++++ 4 files changed, 61 insertions(+) create mode 100644 meta/recipes-kernel/linux/fetch-stable.inc create mode 100644 meta/recipes-kernel/linux/stable-5.10.bb create mode 100644 meta/recipes-kernel/linux/stable-5.12.bb create mode 100644 meta/recipes-kernel/linux/stable-5.4.bb diff --git a/meta/recipes-kernel/linux/fetch-stable.inc b/meta/recipes-kernel/linux/fetch-stable.inc new file mode 100644 index 000000000000..051c35db8772 --- /dev/null +++ b/meta/recipes-kernel/linux/fetch-stable.inc @@ -0,0 +1,24 @@ +# Boilerplate to fetch a single branch of stable. +# Reference is non-optional; there is no excuse to not use one. +# Use a packref for a fixed tag reference; altref for master. + +require recipes-kernel/linux/fetch-only.inc + +python __anonymous () { + kref = d.getVar("KREF") or "master" + if kref == "master": + d.setVar("RTYPE", "alt") + else: + d.setVar("RTYPE", "pack") + clonehost = d.getVar("KORG_SERVER") + d.setVar("KORG_REF", "%s.torvalds.linux-%s" % (clonehost, kref)) + d.setVar("KORG_REFDEP", "linux-%s:do_fetch"% kref) +} + +do_fetch[depends] += "${KORG_REFDEP}" + +STABLE_REV ?= "${STABLE}" +DL_NAME ?= ".stable.${STABLE}" +GITCLONEARGS = "--bare --single-branch --branch ${STABLE}" +GITFETCHREFS ?= "refs/heads/${STABLE}:refs/heads/${STABLE}" +SRC_URI = "${KORG_URLBASE}/stable/linux-stable;rev=${STABLE_REV};nobranch=1;dlname=${DL_NAME};${RTYPE}ref=${KORG_REF}" diff --git a/meta/recipes-kernel/linux/stable-5.10.bb b/meta/recipes-kernel/linux/stable-5.10.bb new file mode 100644 index 000000000000..4dd09fd212d1 --- /dev/null +++ b/meta/recipes-kernel/linux/stable-5.10.bb @@ -0,0 +1,10 @@ +SUMMARY = "Linux stable kernel v5.10.y source" +DESCRIPTION = "Fetch source of the stable linux kernel up to the end of the v5.10.y series" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" + +STABLE = "linux-5.10.y" +KREF = "5.10" + +require recipes-kernel/linux/fetch-stable.inc diff --git a/meta/recipes-kernel/linux/stable-5.12.bb b/meta/recipes-kernel/linux/stable-5.12.bb new file mode 100644 index 000000000000..18cb764dc3f3 --- /dev/null +++ b/meta/recipes-kernel/linux/stable-5.12.bb @@ -0,0 +1,16 @@ +SUMMARY = "Linux stable kernel v5.12.y source" +DESCRIPTION = "Fetch source of the stable linux kernel up to the end of the v5.12.y series" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" + +# The stable branch "linux-5.12.y" wont exist until late April or early May. +# For now this will just create a linux-stable "empty" 5.12.x placeholder. +#STABLE = "linux-5.12.y" +STABLE = "master" +DL_NAME = ".stable.linux-5.12.y" + +# mainline latest is the default stable reference if none is specified. +# KREF = "master" + +require recipes-kernel/linux/fetch-stable.inc diff --git a/meta/recipes-kernel/linux/stable-5.4.bb b/meta/recipes-kernel/linux/stable-5.4.bb new file mode 100644 index 000000000000..98842bacc1ab --- /dev/null +++ b/meta/recipes-kernel/linux/stable-5.4.bb @@ -0,0 +1,11 @@ +SUMMARY = "Linux stable kernel v5.4.y source" +DESCRIPTION = "Fetch source of the stable linux kernel up to the end of the v5.4.y series" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" + +STABLE = "linux-5.4.y" +# For reference, round up to the nearest tag with a recipe +KREF = "5.10" + +require recipes-kernel/linux/fetch-stable.inc -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9651): https://lists.yoctoproject.org/g/linux-yocto/message/9651 Mute This Topic: https://lists.yoctoproject.org/mt/81808184/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-