Zephyr snippets helps developers extend the capabilities of their device firmware with simple command line controls. This post shows how to add logging to an application, but only target it at debug images and only in the application portion of a firmware image.
I needed to build 15 sets of the same firmware, but pass three unique variables for each copy. Zephyr has a solution for this: the Kconfig system. You can declare your own custom symbol, then set the value by passing a command line argument at compile time. Here's how to do this with your own projects.