With v5.10 being the newest baseline currently in use by linux-yocto and
with the download size being 1/2 the size of current linux-yocto itself,
the v5.10 makes a good initial line in the sand for blocking out the
source in a way to optimize sharing.

With this commit present, one can test via "bitbake -c fetch linux-5.10".

Pending recipes who will want this source present will add:
        do_fetch[depends] += "linux-5.10:do_fetch"

Signed-off-by: Paul Gortmaker <[email protected]>
---
 meta/recipes-kernel/linux/fetch-linux.inc | 7 +++++++
 meta/recipes-kernel/linux/linux-5.10.bb   | 9 +++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 meta/recipes-kernel/linux/fetch-linux.inc
 create mode 100644 meta/recipes-kernel/linux/linux-5.10.bb

diff --git a/meta/recipes-kernel/linux/fetch-linux.inc 
b/meta/recipes-kernel/linux/fetch-linux.inc
new file mode 100644
index 000000000000..e3fdd0bb36c2
--- /dev/null
+++ b/meta/recipes-kernel/linux/fetch-linux.inc
@@ -0,0 +1,7 @@
+# Boilerplate to fetch up to a single tag of mainline
+
+require recipes-kernel/linux/fetch-only.inc
+
+GITCLONEARGS = "--bare --single-branch --branch v${KTAG}"
+DL_NAME = ".torvalds.linux-${KTAG}"
+SRC_URI = 
"${KORG_URLBASE}/torvalds/linux;tag=v${KTAG};nobranch=1;static=1;dlname=${DL_NAME}"
diff --git a/meta/recipes-kernel/linux/linux-5.10.bb 
b/meta/recipes-kernel/linux/linux-5.10.bb
new file mode 100644
index 000000000000..7f8a27bcb1f0
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-5.10.bb
@@ -0,0 +1,9 @@
+SUMMARY = "Linux kernel v5.10 source"
+DESCRIPTION = "Fetch source of the linux kernel up to the v5.10 tag"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
+
+KTAG = "5.10"
+
+require recipes-kernel/linux/fetch-linux.inc
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9646): 
https://lists.yoctoproject.org/g/linux-yocto/message/9646
Mute This Topic: https://lists.yoctoproject.org/mt/81808176/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to