All of lore.kernel.org
 help / color / mirror / Atom feed
* custom linux kernel recipe fails
@ 2018-07-26 16:56 Steve Pavao
  2018-07-27  1:57 ` ChenQi
  2018-07-27 17:19 ` Steve Pavao
  0 siblings, 2 replies; 4+ messages in thread
From: Steve Pavao @ 2018-07-26 16:56 UTC (permalink / raw)
  To: yocto

Hello -

I’m trying to build using a custom 64-bit kernel at head of sumo, but I get an error.  It seems that SRCPV cannot be resolved.    Please send any ideas you may have about how I may adapt my recipe to get it to work.

Normally, I use the default meta-raspberrypi kernel, but for this build, I am using PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-custom” in my local.conf

My simple kernel recipe is in linux-yocto-custom.bb.  (It is based on the example recipe).

inherit kernel
require recipes-kernel/linux/linux-yocto.inc

PV = "${LINUX_VERSION}+git${SRCPV}"
PR = "r0"

LINUX_VERSION ?= "4.14.4"
LINUX_VERSION_EXTENSION_append = "-xenomai-ipipe-arm64"

SRC_URI = "http://gitlab.denx.de/Xenomai/ipipe-arm64;protocol=http;branch=master;nocheckout=1"
SRCREV = "133bbf97672ff6e72fc21784b8ae44b194b76626"
SRC_URI[md5sum] = "a5cb3babd85a94fda2905cc3db5e7825"

COMPATIBLE_MACHINE = "raspberrypi3-64"

the error:

WARNING: /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb: Exception during build_dependencies for PKG_kernel-base
WARNING: /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb: Error during finalise of /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb
ERROR: ExpansionError during parsing /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb
Traceback (most recent call last):
bb.data_smart.ExpansionError: Failure expanding variable PKG_kernel-base, expression was kernel-${@legitimize_package_name('${@get_kernelversion_headers('/data/development/lfs/yocto/build/spark/raspberrypi3-64/tmp/work/raspberrypi3_64-poky-linux/linux-yocto-custom/4.14.4+git${SRCPV}-r0/linux-raspberrypi3_64-standard-build')}')} which triggered exception SyntaxError: invalid syntax (PKG_kernel-base, line 1)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: custom linux kernel recipe fails
  2018-07-26 16:56 custom linux kernel recipe fails Steve Pavao
@ 2018-07-27  1:57 ` ChenQi
  2018-07-27 13:02   ` Steve Pavao
  2018-07-27 17:19 ` Steve Pavao
  1 sibling, 1 reply; 4+ messages in thread
From: ChenQi @ 2018-07-27  1:57 UTC (permalink / raw)
  To: Steve Pavao, yocto

[-- Attachment #1: Type: text/plain, Size: 2212 bytes --]

On 07/27/2018 12:56 AM, Steve Pavao wrote:
> Hello -
>
> I’m trying to build using a custom 64-bit kernel at head of sumo, but I get an error.  It seems that SRCPV cannot be resolved.    Please send any ideas you may have about how I may adapt my recipe to get it to work.
>
> Normally, I use the default meta-raspberrypi kernel, but for this build, I am using PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-custom” in my local.conf
>
> My simple kernel recipe is in linux-yocto-custom.bb.  (It is based on the example recipe).
>
> inherit kernel
> require recipes-kernel/linux/linux-yocto.inc
>
> PV = "${LINUX_VERSION}+git${SRCPV}"
> PR = "r0"
>
> LINUX_VERSION ?= "4.14.4"
> LINUX_VERSION_EXTENSION_append = "-xenomai-ipipe-arm64"
>
> SRC_URI = "http://gitlab.denx.de/Xenomai/ipipe-arm64;protocol=http;branch=master;nocheckout=1"
> SRCREV = "133bbf97672ff6e72fc21784b8ae44b194b76626"

Try:

SRC_URI ="http://gitlab.denx.de/Xenomai/ipipe-arm64;protocol=http;branch=master;nocheckout=1;name=machine"
SRCREV_machine = "133bbf97672ff6e72fc21784b8ae44b194b76626"

Best Regards,
Chen Qi

> SRC_URI[md5sum] = "a5cb3babd85a94fda2905cc3db5e7825"
>
> COMPATIBLE_MACHINE = "raspberrypi3-64"
>
> the error:
>
> WARNING: /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb: Exception during build_dependencies for PKG_kernel-base
> WARNING: /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb: Error during finalise of /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb
> ERROR: ExpansionError during parsing /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb
> Traceback (most recent call last):
> bb.data_smart.ExpansionError: Failure expanding variable PKG_kernel-base, expression was kernel-${@legitimize_package_name('${@get_kernelversion_headers('/data/development/lfs/yocto/build/spark/raspberrypi3-64/tmp/work/raspberrypi3_64-poky-linux/linux-yocto-custom/4.14.4+git${SRCPV}-r0/linux-raspberrypi3_64-standard-build')}')} which triggered exception SyntaxError: invalid syntax (PKG_kernel-base, line 1)
>


[-- Attachment #2: Type: text/html, Size: 3015 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: custom linux kernel recipe fails
  2018-07-27  1:57 ` ChenQi
@ 2018-07-27 13:02   ` Steve Pavao
  0 siblings, 0 replies; 4+ messages in thread
From: Steve Pavao @ 2018-07-27 13:02 UTC (permalink / raw)
  To: ChenQi; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2623 bytes --]


> On Jul 26, 2018, at 9:57 PM, ChenQi <Qi.Chen@windriver.com> wrote:
> 
> On 07/27/2018 12:56 AM, Steve Pavao wrote:
>> Hello -
>> 
>> I’m trying to build using a custom 64-bit kernel at head of sumo, but I get an error.  It seems that SRCPV cannot be resolved.    Please send any ideas you may have about how I may adapt my recipe to get it to work.
>> 
>> Normally, I use the default meta-raspberrypi kernel, but for this build, I am using PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-custom” in my local.conf
>> 
>> My simple kernel recipe is in linux-yocto-custom.bb.  (It is based on the example recipe).
>> 
>> inherit kernel
>> require recipes-kernel/linux/linux-yocto.inc
>> 
>> PV = "${LINUX_VERSION}+git${SRCPV}"
>> PR = "r0"
>> 
>> LINUX_VERSION ?= "4.14.4"
>> LINUX_VERSION_EXTENSION_append = "-xenomai-ipipe-arm64"
>> 
>> SRC_URI = "http://gitlab.denx.de/Xenomai/ipipe-arm64;protocol=http;branch=master;nocheckout=1" <http://gitlab.denx.de/Xenomai/ipipe-arm64;protocol=http;branch=master;nocheckout=1>
>> SRCREV = "133bbf97672ff6e72fc21784b8ae44b194b76626"
> 
> Try:
> SRC_URI = "http://gitlab.denx.de/Xenomai/ipipe-arm64;protocol=http;branch=master;nocheckout=1;name=machine" <http://gitlab.denx.de/Xenomai/ipipe-arm64;protocol=http;branch=master;nocheckout=1>
> SRCREV_machine = "133bbf97672ff6e72fc21784b8ae44b194b76626"
> Best Regards,
> Chen Qi

Thanks for the idea, Chean Qui.  I tried it, but I still got the same WARNINGS and ERROR.

- Steve

> 
>> SRC_URI[md5sum] = "a5cb3babd85a94fda2905cc3db5e7825"
>> 
>> COMPATIBLE_MACHINE = "raspberrypi3-64"
>> 
>> the error:
>> 
>> WARNING: /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb: Exception during build_dependencies for PKG_kernel-base
>> WARNING: /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb: Error during finalise of /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb
>> ERROR: ExpansionError during parsing /data/development/lfs/yocto/poky/meta-korg-spark/recipes-kernel/linux/linux-yocto-custom.bb
>> Traceback (most recent call last):
>> bb.data_smart.ExpansionError: Failure expanding variable PKG_kernel-base, expression was kernel-${@legitimize_package_name('${@get_kernelversion_headers('/data/development/lfs/yocto/build/spark/raspberrypi3-64/tmp/work/raspberrypi3_64-poky-linux/linux-yocto-custom/4.14.4+git${SRCPV}-r0/linux-raspberrypi3_64-standard-build')}')} which triggered exception SyntaxError: invalid syntax (PKG_kernel-base, line 1)
>> 
> 


[-- Attachment #2: Type: text/html, Size: 3895 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: custom linux kernel recipe fails
  2018-07-26 16:56 custom linux kernel recipe fails Steve Pavao
  2018-07-27  1:57 ` ChenQi
@ 2018-07-27 17:19 ` Steve Pavao
  1 sibling, 0 replies; 4+ messages in thread
From: Steve Pavao @ 2018-07-27 17:19 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 795 bytes --]

On Jul 26, 2018, at 12:56 PM, Steve Pavao <stevep@korgrd.com> wrote:
> 
> I’m trying to build using a custom 64-bit kernel at head of sumo, but I get an error.  It seems that SRCPV cannot be resolved.    Please send any ideas you may have about how I may adapt my recipe to get it to work.

[snip portion of recipe]

> SRC_URI = "http://gitlab.denx.de/Xenomai/ipipe-arm64;protocol=http;branch=master;nocheckout=1 <http://gitlab.denx.de/Xenomai/ipipe-arm64;protocol=http;branch=master;nocheckout=1>"
> SRCREV = "133bbf97672ff6e72fc21784b8ae44b194b76626"



I was able to avoid the error by using the following line for the SRC_URI instead:

SRC_URI = "git://gitlab.denx.de/Xenomai/ipipe-arm64;protocol=http <git://gitlab.denx.de/Xenomai/ipipe-arm64;protocol=http>”

- Steve


[-- Attachment #2: Type: text/html, Size: 3934 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-27 17:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-26 16:56 custom linux kernel recipe fails Steve Pavao
2018-07-27  1:57 ` ChenQi
2018-07-27 13:02   ` Steve Pavao
2018-07-27 17:19 ` Steve Pavao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.