Re: Unable to parse /home/PATH/meta-swupdate/recipes-support/swupdate/swupdate_git.bb #swupdate


Quentin Schulz
 

Hi Vishal,

On November 11, 2021 5:42:44 AM GMT+01:00, vishal.rana118@... wrote:
Hi Team,

I am new with Yocto and SWupdate framework. I am trying to integrate SWupdate framework in our existing yocto code.
I am using *SUMO version*. while trying to build kernel image I am getting below error.
*MACHINE=imx6s-comg-mtech DISTRO=fsl-imx-fb EULA=1 source setup-environment build-mtech*
*bitbake linux-comg-mtech-4.14.78.local*

////////////////////////////////////////////////////////Error log/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ERROR: Unable to parse /home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/meta-swupdate/recipes-support/swupdate/swupdate_git.bb
Traceback (most recent call last):
File "/home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/poky/bitbake/lib/bb/parse/__init__.py", line 117, in handle(fn='/home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/meta-swupdate/recipes-support/swupdate/swupdate_git.bb', data=<bb.data_smart.DataSmart object at 0x7f2675a782b0>, include=0):
with data.inchistory.include(fn):
                return h['handle'](fn, data, include)
raise ParseError("not a BitBake file", fn)
File "/home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 154, in handle(fn='/home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/meta-swupdate/recipes-support/swupdate/swupdate_git.bb', d=<bb.data_smart.DataSmart object at 0x7f2675a782b0>, include=0):
if ext != ".bbclass" and include == 0:
        return ast.multi_finalize(fn, d)
File "/home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/poky/bitbake/lib/bb/parse/ast.py", line 391, in multi_finalize(fn='/home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/meta-swupdate/recipes-support/swupdate/swupdate_git.bb', d=<bb.data_smart.DataSmart object at 0x7f2675a782b0>):
logger.debug(1, "Appending .bbappend file %s to %s", append, fn)
        bb.parse.BBHandler.handle(append, d, True)
File "/home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 132, in handle(fn='/home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/meta-mylayer/recipes-support/swupdate/swupdate_%d', d=<bb.data_smart.DataSmart object at 0x7f2675a782b0>, include=True):

    abs_fn = resolve_file(fn, d)
File "/home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/poky/bitbake/lib/bb/parse/__init__.py", line 141, in resolve_file(fn='/home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/meta-mylayer/recipes-support/swupdate/swupdate_%d', d=<bb.data_smart.DataSmart object at 0x7f2675a782b0>):
if not os.path.isfile(fn):
        raise IOError(errno.ENOENT, "file %s not found" % fn)
FileNotFoundError: [Errno 2] file /home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/meta-mylayer/recipes-support/swupdate/swupdate_%d not found
What's the exact filename of files in the home/Mtech/Graphics_Gx_Mtech/Graphics_GX_Mtech/BSP/yocto/sources/meta-mylayer/recipes-support/swupdate/ directory?

I suspect that you have a swupdate_%d.bbappend which isn't valid in bitbake. It should be swupdate_%.bbappend.

Cheers
Quentin

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Not able to understand the root cause of this because without adding "meta-swupdate" layer I am able to build the code.
Please help me to resolve this issue.

Regards,
Vishal Rana

Join yocto@lists.yoctoproject.org to automatically receive all group messages.