I'd like to have a traditional way to build a development image and a production image, both pulling from the same recipes, but one differing with just debug tools/settings.
I've read that conditional includes in builds is not really how Yocto/Bitbake work, but thought perhaps the easiest way is to create a separate MACHINE folder, but perhaps have the debug work directory point to an additional layer with the debug stuff.
You can write two separate image recipes, and have them include what is needed (e.g. additional debug-oriented recipes).