[poky] [PATCH] meta-skeleton: Add name attribute to SRC_URI

Bruce Ashfield bruce.ashfield at gmail.com
Wed Mar 26 09:05:33 PDT 2014


On Wed, Mar 26, 2014 at 10:40 AM, Jukka Rissanen
<jukka.rissanen at linux.intel.com> wrote:
> The SRCREV_machine line does not work without having name=machine
> attribute in SRC_URI.
>
> This error is seen if the custom kernel recipe is used without
> the name attribute:
>
> NOTE: Error during finalise of .../linux-yocto-custom.bb
> ERROR: ExpansionError during parsing .../linux-yocto-custom.bb: Failure expanding variable do_patch: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure for URL: 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1'. Please set a valid SRCREV for url ['SRCREV_default_pn-linux-yocto-custom', 'SRCREV_default', 'SRCREV_pn-linux-yocto-custom', 'SRCREV'] (possible key names are git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1, or use a ;rev=X URL parameter)
>

I carry a similar change locally, so I agree the reference recipe needs
to be updated.

Acked-by: Bruce Ashfield <bruce.ashfield at windriver.com>



> Signed-off-by: Jukka Rissanen <jukka.rissanen at linux.intel.com>
> ---
>  meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb b/meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb
> index 42162f3..c329106 100644
> --- a/meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb
> +++ b/meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb
> @@ -46,7 +46,7 @@ require recipes-kernel/linux/linux-yocto.inc
>
>  # Override SRC_URI in a bbappend file to point at a different source
>  # tree if you do not want to build from Linus' tree.
> -SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1"
> +SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1;name=machine"
>
>  LINUX_VERSION ?= "3.4"
>  LINUX_VERSION_EXTENSION ?= "-custom"
> --
> 1.8.3.1
>
> --
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


More information about the poky mailing list