Re: [yocto] Custom Image Type

2022-02-28 Thread Rudolf J Streif

Thanks, Khem.

On 2/28/22 8:54 PM, Khem Raj wrote:

On Mon, Feb 28, 2022 at 8:32 PM Rudolf J Streif
 wrote:

I ran into a problem with a custom image type class. I called the class
image_types_ota.bbclass.

When I try to use it I am getting these error messages for two
predefined image recipes (but only for these two, for any other image
recipe it is fine):

ERROR:
/develop/projects/tcu/build/../poky/meta/recipes-rt/images/core-image-rt-sdk.bb:
No IMAGE_CMD defined for IMAGE_FSTYPES entry 'ota' - possibly invalid
type name or missing support class
ERROR:
/develop/projects/tcu/build/../meta-openembedded/meta-networking/recipes-core/images/meta-networking-image-base.bb:
No IMAGE_CMD defined for IMAGE_FSTYPES entry 'ota' - possibly invalid
type name or missing support class
ERROR: Failed to parse recipe:
/develop/projects/tcu/build/../poky/meta/recipes-rt/images/core-image-rt-sdk.bb

I have no idea what in these two image recipes could trigger this error
message.


hard to tell without knowing how ota class is being plugged in or what
its content is.
Do you define IMAGE_FSTYPES:ota ... somewhere ?


The image class defines IMAGE_CMD. There is not much to it for now:

OTA_ROOTFS_MD5 ?= "rootfs.md5"

IMAGE_CMD:ota () {
    build_ota="${WORKDIR}/build-ota"

    # rootfs
    md5sum ${IMAGE_ROOTFS} > ${build_ota}/OTA_ROOTFS_MD5
}

What I don't see is why these two are the only image recipes this is 
occurring with. All the other image recipes do not throw a parser error.



Thanks,
Rudi





--
Rudolf J Streif
CEO/CTO ibeeto
+1.855.442.3386 x700



OpenPGP_0x8D8CA82927339B75.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#56330): https://lists.yoctoproject.org/g/yocto/message/56330
Mute This Topic: https://lists.yoctoproject.org/mt/89469318/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Custom Image Type

2022-02-28 Thread Rudolf J Streif
I ran into a problem with a custom image type class. I called the class 
image_types_ota.bbclass.


When I try to use it I am getting these error messages for two 
predefined image recipes (but only for these two, for any other image 
recipe it is fine):


ERROR: 
/develop/projects/tcu/build/../poky/meta/recipes-rt/images/core-image-rt-sdk.bb: 
No IMAGE_CMD defined for IMAGE_FSTYPES entry 'ota' - possibly invalid 
type name or missing support class
ERROR: 
/develop/projects/tcu/build/../meta-openembedded/meta-networking/recipes-core/images/meta-networking-image-base.bb: 
No IMAGE_CMD defined for IMAGE_FSTYPES entry 'ota' - possibly invalid 
type name or missing support class
ERROR: Failed to parse recipe: 
/develop/projects/tcu/build/../poky/meta/recipes-rt/images/core-image-rt-sdk.bb


I have no idea what in these two image recipes could trigger this error 
message.


Thanks,
Rudi



OpenPGP_0x8D8CA82927339B75.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#56327): https://lists.yoctoproject.org/g/yocto/message/56327
Mute This Topic: https://lists.yoctoproject.org/mt/89469318/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-