<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 5, 2016 at 9:40 AM, Joel Stanley <span dir="ltr"><<a href="mailto:joel@jms.id.au" target="_blank">joel@jms.id.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, Jun 4, 2016 at 12:20 AM, OpenBMC Patches<br>
<<a href="mailto:openbmc-patches@stwcx.xyz">openbmc-patches@stwcx.xyz</a>> wrote:<br>
> From: Brad Bishop <<a href="mailto:bradleyb@fuzziesquirrel.com">bradleyb@fuzziesquirrel.com</a>><br>
><br>
> This facilitates multiple kernel recipes.<br>
><br>
> Signed-off-by: Brad Bishop <<a href="mailto:bradleyb@fuzziesquirrel.com">bradleyb@fuzziesquirrel.com</a>><br>
> ---<br>
>  .../common/recipes-kernel/linux/linux-obmc.inc         | 18 ++++++++++++++++++<br>
>  .../common/recipes-kernel/linux/<a href="http://linux-obmc_4.4.bb" rel="noreferrer" target="_blank">linux-obmc_4.4.bb</a>      | 18 +-----------------<br>
>  2 files changed, 19 insertions(+), 17 deletions(-)<br>
>  create mode 100644 meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc<br>
><br>
> diff --git a/meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc b/meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc<br>
> new file mode 100644<br>
> index 0000000..c64ff9d<br>
> --- /dev/null<br>
> +++ b/meta-phosphor/common/recipes-kernel/linux/linux-obmc.inc<br>
> @@ -0,0 +1,18 @@<br>
> +DESCRIPTION = "Linux kernel for OpenBMC"<br>
> +SECTION = "kernel"<br>
> +LICENSE = "GPLv2"<br>
> +<br>
> +KCONFIG_MODE="--alldefconfig"<br>
> +<br>
> +KSRC ?= "git://<a href="http://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}" rel="noreferrer" target="_blank">github.com/openbmc/linux;protocol=git;branch=${KBRANCH}</a>"<br>
<br>
</span>Can we tell poky to download a tarball instead of waiting for it to<br>
check out a git repository?<br>
<span class=""><br></span></blockquote><div><br></div><div>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.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> +SRC_URI = "${KSRC}"<br>
> +SRC_URI += "file://hwmon.cfg"<br>
<br>
</span>As I commented in another patch, I'd prefer we weren't spreading our<br>
configuration all over the poky tree and instead it was all in one<br>
place.<br>
<br>
Cheers,<br>
<br>
Joel<br>
<span class="im HOEnZb"><br>
> +<br>
> +LINUX_VERSION_EXTENSION ?= "-${SRCREV}"<br>
> +<br>
> +PV = "${LINUX_VERSION}+git${SRCPV}"<br>
> +<br>
> +COMPATIBLE_MACHINE_${MACHINE} = "openbmc"<br>
> +<br>
> +inherit kernel<br>
> +require recipes-kernel/linux/linux-yocto.inc<br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
openbmc mailing list<br>
<a href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a><br>
<a href="https://lists.ozlabs.org/listinfo/openbmc" rel="noreferrer" target="_blank">https://lists.ozlabs.org/listinfo/openbmc</a><br>
</div></div></blockquote></div><br></div></div>