Replies: 1 comment
-
An override like that isn't something that the build system supports, since an image is essentially just a list of packages to be installed, and the intent is to maximize the sharing of packages between different images you might build. If you just need to install a different set of files built from your recipe into the different images, then you can do this from a single recipe, and use If, on the other hand, you need to build the recipe differently based on the image (e.g., with different compile-time options), then you'd need to create two separate recipes. I can't think of a good example of this to point to, since it's not considered good practice (for open-source packages, at least). I have had to do this in some projects in the past, though. |
Beta Was this translation helpful? Give feedback.
-
Hi Guys,
My case is that a specific recipe should do something based on the image being built.
I can duplicate the recipe and select each of them from the image via image_install, however this seems overkill and ugly.
Is there a way I could perform a specific function in the recipe based on the image, something like do_install_append_myimage?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions