With a split in two done, extending to three is fairly trivial. The only difference is that the introduced "touch down" point of 4.12 has a fetch depend/ref itself to the other touch down point of 3.8. The parent repo (v5.10) has no need of knowledge of what happens prior to 4.12.
Signed-off-by: Paul Gortmaker <paul.gortma...@windriver.com> --- meta/recipes-kernel/linux/linux-3.8.bb | 9 +++++++++ meta/recipes-kernel/linux/linux-4.12.bb | 10 ++++++++++ meta/recipes-kernel/linux/linux-5.10.bb | 5 +++++ 3 files changed, 24 insertions(+) create mode 100644 meta/recipes-kernel/linux/linux-3.8.bb create mode 100644 meta/recipes-kernel/linux/linux-4.12.bb diff --git a/meta/recipes-kernel/linux/linux-3.8.bb b/meta/recipes-kernel/linux/linux-3.8.bb new file mode 100644 index 000000000000..58063ea51691 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-3.8.bb @@ -0,0 +1,9 @@ +SUMMARY = "Linux kernel v3.8 source" +DESCRIPTION = "Fetch source of the linux kernel up to the v3.8 tag" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" + +KTAG = "3.8" + +require recipes-kernel/linux/fetch-linux.inc diff --git a/meta/recipes-kernel/linux/linux-4.12.bb b/meta/recipes-kernel/linux/linux-4.12.bb new file mode 100644 index 000000000000..6e8034a77f4a --- /dev/null +++ b/meta/recipes-kernel/linux/linux-4.12.bb @@ -0,0 +1,10 @@ +SUMMARY = "Linux kernel v4.12 source" +DESCRIPTION = "Fetch source of the linux kernel up to the v4.12 tag" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" + +KTAG = "4.12" +KREF = "3.8" + +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 73e33d405376..373c6b8def2e 100644 --- a/meta/recipes-kernel/linux/linux-5.10.bb +++ b/meta/recipes-kernel/linux/linux-5.10.bb @@ -7,12 +7,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" KTAG = "5.10" # We optionally split the v5.10 download via adding refs and depends. +# Multiple splits are achieved by adding more chained dependencies. # Fragmented downloads can be less apt to timeout, but delta compression # will lead to object duplication for > 1 objects/pack/*pack file and # an increase in overall on-disk totals. The du -hsm for bare repos: # # 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) # # Download sizes will vary depending on server compression settings. @@ -23,6 +25,9 @@ python __anonymous () { if splits == 1: d.setVar("KREF", "4.0") return + if splits == 2: + d.setVar("KREF", "4.12") + 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 (#9649): https://lists.yoctoproject.org/g/linux-yocto/message/9649 Mute This Topic: https://lists.yoctoproject.org/mt/81808180/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-