[OE-core] [PATCH] kernel.bbclass: Fix incorrect deploying of fitimage.initramfs

Manjukumar Harthikote Matha MANJUKUM at xilinx.com
Thu Jan 3 16:40:02 UTC 2019



> -----Original Message-----
> From: openembedded-core-bounces at lists.openembedded.org
> [mailto:openembedded-core-bounces at lists.openembedded.org] On Behalf Of
> André Draszik
> Sent: Thursday, January 03, 2019 8:07 AM
> To: openembedded-core at lists.openembedded.org
> Subject: Re: [OE-core] [PATCH] kernel.bbclass: Fix incorrect deploying of
> fitimage.initramfs
> 
> On Wed, 2019-01-02 at 20:51 -0800, Manjukumar Matha wrote:
> > When kernel-fitimage and initramfs is enabled using
> > INITRAMFS_IMAGE_BUNDLE = "1", kernel do_deploy tries to deploy
> > fitImage.initramfs with following error
> >
> > > install: cannot stat 'arch/arm64/boot/fitImage.initramfs': No such
> > file or directory
> >
> > Skip deploying fitimage.initramfs, since fitimage does not create
> > fitimage.initramfs
> >
> > Signed-off-by: Manjukumar Matha
> > <manjukumar.harthikote-matha at xilinx.com>
> > ---
> >  meta/classes/kernel.bbclass | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> > index e04d2fe..60382bf 100644
> > --- a/meta/classes/kernel.bbclass
> > +++ b/meta/classes/kernel.bbclass
> > @@ -682,6 +682,9 @@ kernel_do_deploy() {
> >
> >  	if [ ! -z "${INITRAMFS_IMAGE}" -a x"${INITRAMFS_IMAGE_BUNDLE}" = x1
> > ]; then
> >  		for imageType in ${KERNEL_IMAGETYPES} ; do
> > +			if [ "$imageType" == "fitImage" ] ; then
>                                           ^^
> 
> == is a bashism and should simply be = instead.
> 

Right, v2 on its way

Thanks,
Manju

> Cheers,
> Andre'
> 
> > +				continue
> > +			fi
> >  			initramfs_base_name=${imageType}-${INITRAMFS_NAME}
> >  			initramfs_symlink_name=${imageType}-
> > ${INITRAMFS_LINK_NAME}
> >  			install -m 0644
> > ${KERNEL_OUTPUT_DIR}/${imageType}.initramfs
> > $deployDir/${initramfs_base_name}.bin
> > --
> > 2.7.4
> >
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


More information about the Openembedded-core mailing list