Hi Quentin,
I have now read up on the exact meaning of PROVIDES and PACKAGES and I do 
understand your response.
It does sound like I am talking about PACKAGES since I did suspect PROVIDES to 
work like that.
Well at least if PROVIDES would work like that, it would explain why my 
postinstall did not work previously.

But I did use PROVIDES, which I now know is basically just a alias.

Here is the situation I had before and how I solved it:

Previous attempt:
*my_recipe.bb:*
...
PROVIDES += "my_recipes_package"
RPROVIDES_${PN} += "my_recipes_package"

pkg_postinst_ontarget_${PN} () {
#!/bin/sh
file=$D/home/root/test/test.txt
printf "hello world\n" > $file
}

*my_image.bb:*
IMAGE_INSTALL += " my_recipes_package "

current solution:
*my_recipe.bb:*
...
pkg_postinst_ontarget_${PN} () {
#!/bin/sh
file=$D/home/root/test/test.txt
printf "hello world\n" > $file
}

*my_image.bb:*
IMAGE_INSTALL += " my_recipe "

I can only guess that the postinst was only attached to the package called 
"my_recipe" and not to its alias "my_recipes_package"?

Stefan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#48955): https://lists.yoctoproject.org/g/yocto/message/48955
Mute This Topic: https://lists.yoctoproject.org/mt/72582932/21656
Mute #yocto: https://lists.yoctoproject.org/mk?hashtag=yocto&subid=6691583
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to