Discussion:
[yocto] non-existent task do_package_write_ipk
Donal Morrissey
2018-11-09 11:34:30 UTC
Permalink
Hi There,
I'm not able to inherit core-image into my recipe, when I do, I get the
following error:
ERROR: Task do_populate_sdk in .../poky/meta/recipes-core/images/
core-image-base.bb rdepends upon non-existent task do_package_write_ipk in
/home/donal/Projects/farkas/source/meta-my-platform/recipes-tools/system-scripts/
system-scripts.bb
ERROR: Command execution failed: 1

The reason I'm inheriting core-image, is so that I can append a command to
the ROOTFS_POSTPROCESS_COMMAND variable.

The following are the contents of my bb file:

SUMMARY = "Set of common platform tools."
DESCRIPTION = "..."
AUTHOR = "..."
LICENSE = "CLOSED"

inherit core-image

my_post_process_cmd() {
touch ${IMAGE_ROOTFS}/test
}
ROOTFS_POSTPROCESS_COMMAND += " my_post_process_cmd;"

Any suggestions on how to fix this?

Thank you,
Donal
Burton, Ross
2018-11-09 12:12:57 UTC
Permalink
A recipe that ship files and generates packages can't also inherit
core-image because it can't both be a package and an image. If you
want this package to run something when it is installed, write a
post-install function (pkg_postinst).

Ross
Post by Donal Morrissey
Hi There,
ERROR: Task do_populate_sdk in .../poky/meta/recipes-core/images/core-image-base.bb rdepends upon non-existent task do_package_write_ipk in /home/donal/Projects/farkas/source/meta-my-platform/recipes-tools/system-scripts/system-scripts.bb
ERROR: Command execution failed: 1
The reason I'm inheriting core-image, is so that I can append a command to the ROOTFS_POSTPROCESS_COMMAND variable.
SUMMARY = "Set of common platform tools."
DESCRIPTION = "..."
AUTHOR = "..."
LICENSE = "CLOSED"
inherit core-image
my_post_process_cmd() {
touch ${IMAGE_ROOTFS}/test
}
ROOTFS_POSTPROCESS_COMMAND += " my_post_process_cmd;"
Any suggestions on how to fix this?
Thank you,
Donal
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
--
Donal Morrissey
2018-11-09 14:48:28 UTC
Permalink
Hi Ross,
Thank you for your help. My build is using a layer which is generating a
file in a ROOTFS_POSTPROCESS_COMMAND command. I would like to modify this
file as part of the yocto build, but I'd prefer not to modify/fork this
layer as it is from a vender.

I'm creating my own layer, which will modify the file created in the vender
layer's ROOTFS_POSTPROCESS_COMMAND command. If I use pkg_postinst, then the
file will not have been created when pkg_postinst is called, because (as
far as i understand) the ROOTFS_POSTPROCESS_COMMAND commands will only be
executed after all packages have been installed on the root filesystem
image.

Any suggestions on how to proceed?

Regards,
Donal
Post by Burton, Ross
A recipe that ship files and generates packages can't also inherit
core-image because it can't both be a package and an image. If you
want this package to run something when it is installed, write a
post-install function (pkg_postinst).
Ross
Burton, Ross
2018-11-09 14:53:02 UTC
Permalink
Thank you for your help. My build is using a layer which is generating a file in a ROOTFS_POSTPROCESS_COMMAND command. I would like to modify this file as part of the yocto build, but I'd prefer not to modify/fork this layer as it is from a vender.
I'm creating my own layer, which will modify the file created in the vender layer's ROOTFS_POSTPROCESS_COMMAND command. If I use pkg_postinst, then the file will not have been created when pkg_postinst is called, because (as far as i understand) the ROOTFS_POSTPROCESS_COMMAND commands will only be executed after all packages have been installed on the root filesystem image.
You'll have to set your own ROOTFS_POSTPROCESS_COMMAND in your image recipe.

Ross
--
Donal Morrissey
2018-11-09 15:44:54 UTC
Permalink
Hi Ross,
I had to use IMAGE_PREPROCESS_COMMAND in my own image recipe, the execution
order of the ROOTFS_POSTPROCESS_COMMAND commands didn't work for me.
Thanks for your help.
Donal
Post by Donal Morrissey
Post by Donal Morrissey
Thank you for your help. My build is using a layer which is generating a
file in a ROOTFS_POSTPROCESS_COMMAND command. I would like to modify this
file as part of the yocto build, but I'd prefer not to modify/fork this
layer as it is from a vender.
Post by Donal Morrissey
I'm creating my own layer, which will modify the file created in the
vender layer's ROOTFS_POSTPROCESS_COMMAND command. If I use pkg_postinst,
then the file will not have been created when pkg_postinst is called,
because (as far as i understand) the ROOTFS_POSTPROCESS_COMMAND commands
will only be executed after all packages have been installed on the root
filesystem image.
You'll have to set your own ROOTFS_POSTPROCESS_COMMAND in your image recipe.
Ross
Loading...