I have a layer that I am writing for Yocto. I want to have two configurations for the hardware. One would be a standard generic config, one would be a use case specific config, and I can't figure out how to do this.
Here is an example of what I want. let's say in the generic-image recipe, I want network interfaces to be configured for DHCP. And in the use-case-image recipe I want it configured for a static IP.
I could write a bbappend to override the standard the file for init-ifupdown recipe, but that would change the file for all instances that use the init-ifupdown recipe. I only want the file changed when building a use-case-image recipe and not generic-image.
And to take this 1 step further. I have about a dozen files that I want to replace in the rootfs. I don't want to have to write a bbappend for each and every one.
Any idea how to write a recipe that will replace a few files without getting the " that file is already provided by package" error? And not have to write a dozen bbappend files?
I know in buildroot this is easily done with an overlay, unfortunately I am stuck with yocto.