On Fri, Apr 2, 2021 at 1:16 PM Paul Gortmaker <[email protected]> wrote: > > 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
A specific comment is that this should actually have "fetch-only" in the name of the recipe. We want to avoid any confusion about this being buildable, and that it is not a jumping point for kernel builds. Trust me, someone will ask. linux-yocto has v5.10/base which is vanilla -stable, and simply because the name is linux-yocto, people never realize that they can build a completely stock greg-kh kernel until they turn blue :D Otherwise, I like the concept and can take it for a spin. Bruce > @@ -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 > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9657): https://lists.yoctoproject.org/g/linux-yocto/message/9657 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]] -=-=-=-=-=-=-=-=-=-=-=-
