I have added my own yocto layer on top of the balena os and in it I’m trying to initialize the can interfaces on boot. I’ve create a service but when I build the image, the service or it’s files are not present. I’ve looking into the temp folder and the service files are present.
Hey there, how have you added this recipe as a component of the final image? Does another recipe RDEPENDS on it?
I think you need to specify that the source directory is the same as your workdir for this recipe (S = "${WORKDIR}") in order for the service files to be found and installed correctly. Though if that were the case I would expect to see some errors during do_install but it’s worth a try.
When you disabled rm_work and searched for the files in build/tmp, were they located in more than one directory? Knowing where bitbake copied the files during the build would help identify if the problem is during do_install or some other step. For example:
If your service files are not in /package/ or /packages-split/ it’s safe to say they were not installed correctly, or were somehow missing from the default FILES_${PN} value.
If the above steps don’t point to a solution we may want to have a look at verbose build logs if possible!
I think this is actually what is wrong! So far I have created only addons to other recipes (bbappend) and was assuming that doing the same (just adding the bb files) would work. Where should I add this as a component?
This is the output in the TMP folder is definitely missing the package and package-split directory.