Extending from three to four roughly equal chunks introduces three new
split boundaries - 3.3 4.3 and 4.18, but is trivial to hook in.

This gets chunks down to roughly 1/2G and with the resulting loss of
compression efficiency, it doesn't seem to make sense to support
splitting things any further.  See the chunk sizes in the commit.

Document the new variable and its allowed value range since we don't
see adding any further split options.

Signed-off-by: Paul Gortmaker <paul.gortma...@windriver.com>
---
 documentation/ref-manual/variables.rst  |  6 ++++++
 meta/recipes-kernel/linux/linux-3.3.bb  |  9 +++++++++
 meta/recipes-kernel/linux/linux-4.18.bb | 10 ++++++++++
 meta/recipes-kernel/linux/linux-4.3.bb  | 10 ++++++++++
 meta/recipes-kernel/linux/linux-5.10.bb |  4 ++++
 5 files changed, 39 insertions(+)
 create mode 100644 meta/recipes-kernel/linux/linux-3.3.bb
 create mode 100644 meta/recipes-kernel/linux/linux-4.18.bb
 create mode 100644 meta/recipes-kernel/linux/linux-4.3.bb

diff --git a/documentation/ref-manual/variables.rst 
b/documentation/ref-manual/variables.rst
index 55028987c08a..1226bbf77193 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -3441,6 +3441,12 @@ system and gives an overview of their function and 
contents.
       lines in the example are from individual recipes and show how the
       ``PR`` value is set.
 
+   :term:`INITIAL_KERNEL_SPLIT`
+      Specifies the number of times the initial kernel Git clone should be
+      split in order to avoid one single gigabyte+ download. Supported
+      values are 0 through 3 inclusive, resulting in one through four
+      separate chunks (repositories) in the download dir.
+
    :term:`INCOMPATIBLE_LICENSE`
       Specifies a space-separated list of license names (as they would
       appear in :term:`LICENSE`) that should be excluded
diff --git a/meta/recipes-kernel/linux/linux-3.3.bb 
b/meta/recipes-kernel/linux/linux-3.3.bb
new file mode 100644
index 000000000000..da355f9cd32c
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-3.3.bb
@@ -0,0 +1,9 @@
+SUMMARY = "Linux kernel v3.3 source"
+DESCRIPTION = "Fetch source of the linux kernel up to the v3.3 tag"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
+KTAG = "3.3"
+
+require recipes-kernel/linux/fetch-linux.inc
diff --git a/meta/recipes-kernel/linux/linux-4.18.bb 
b/meta/recipes-kernel/linux/linux-4.18.bb
new file mode 100644
index 000000000000..ea87f5e92b52
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-4.18.bb
@@ -0,0 +1,10 @@
+SUMMARY = "Linux kernel v4.18 source"
+DESCRIPTION = "Fetch source of the linux kernel up to the v4.18 tag"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
+KTAG = "4.18"
+KREF = "4.3"
+
+require recipes-kernel/linux/fetch-linux.inc
diff --git a/meta/recipes-kernel/linux/linux-4.3.bb 
b/meta/recipes-kernel/linux/linux-4.3.bb
new file mode 100644
index 000000000000..35e5fd48d8ba
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-4.3.bb
@@ -0,0 +1,10 @@
+SUMMARY = "Linux kernel v4.3 source"
+DESCRIPTION = "Fetch source of the linux kernel up to the v4.3 tag"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
+KTAG = "4.3"
+KREF = "3.3"
+
+require recipes-kernel/linux/fetch-linux.inc
diff --git a/meta/recipes-kernel/linux/linux-5.10.bb 
b/meta/recipes-kernel/linux/linux-5.10.bb
index 373c6b8def2e..e147c854477d 100644
--- a/meta/recipes-kernel/linux/linux-5.10.bb
+++ b/meta/recipes-kernel/linux/linux-5.10.bb
@@ -15,6 +15,7 @@ KTAG = "5.10"
 # No split:    1521    epoch->5.10
 # One split:   1730    epoch->4.0, 4.0->5.10 (854+877)
 # Two splits:  1928    epoch->3.8, 3.8->4.12, 4.12->5.10 (628+647+653)
+# Three splits:        2106    epoch->3.3, 3.3->4.3, 4.3->4.18, 4.18->5.10 
(536+532+519+520)
 #
 # Download sizes will vary depending on server compression settings.
 
@@ -28,6 +29,9 @@ python __anonymous () {
     if splits == 2:
         d.setVar("KREF", "4.12")
         return
+    if splits == 3:
+        d.setVar("KREF", "4.18")
+        return
     bb.fatal("Unsupported number of v5.10 kernel content splits (%s)." % 
splits)
 }
 
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9650): 
https://lists.yoctoproject.org/g/linux-yocto/message/9650
Mute This Topic: https://lists.yoctoproject.org/mt/81808183/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to