[PATCH openbmc 06/10] Move static kernel recipe configuration to include

Rick Altherr raltherr at google.com
Tue Jun 7 05:08:04 AEST 2016


On Sun, Jun 5, 2016 at 9:40 AM, Joel Stanley <joel at jms.id.au> wrote:

> On Sat, Jun 4, 2016 at 12:20 AM, OpenBMC Patches
> <openbmc-patches at stwcx.xyz> wrote:
> > From: Brad Bishop <bradleyb at fuzziesquirrel.com>
> >
> > This facilitates multiple kernel recipes.
> >
> > Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
> > ---
> >  .../common/recipes-kernel/linux/linux-obmc.inc         | 18
> ++++++++++++++++++
> >  .../common/recipes-kernel/linux/linux-obmc_4.4.bb      | 18
> +-----------------
> >  2 files changed, 19 insertions(+), 17 deletions(-)
> >  create mode 100644
> meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc
> >
> > diff --git a/meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc
> b/meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc
> > new file mode 100644
> > index 0000000..c64ff9d
> > --- /dev/null
> > +++ b/meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc
> > @@ -0,0 +1,18 @@
> > +DESCRIPTION = "Linux kernel for OpenBMC"
> > +SECTION = "kernel"
> > +LICENSE = "GPLv2"
> > +
> > +KCONFIG_MODE="--alldefconfig"
> > +
> > +KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
>
> Can we tell poky to download a tarball instead of waiting for it to
> check out a git repository?
>
>
You can but Bitbake does a bunch of caching that makes it mostly a
non-issue.  Basically, the repo gets checked out to a download folder and
then cloned into the work directory.  When we have 4.6 as well, it will use
the same cached repo in the download folder for both kernel versions.


> > +SRC_URI = "${KSRC}"
> > +SRC_URI += "file://hwmon.cfg"
>
> As I commented in another patch, I'd prefer we weren't spreading our
> configuration all over the poky tree and instead it was all in one
> place.
>
> Cheers,
>
> Joel
>
> > +
> > +LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
> > +
> > +PV = "${LINUX_VERSION}+git${SRCPV}"
> > +
> > +COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
> > +
> > +inherit kernel
> > +require recipes-kernel/linux/linux-yocto.inc
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20160606/caf31b73/attachment.html>


More information about the openbmc mailing list