thin-edge.io
thin-edge.io copied to clipboard
Make systemd watchdog backend only build for linux
Following the discussion in #1278 and as suggested by @albinsuresh:
This patch ensures that the systemd watchdog backend is only used when building for linux.
Right now, there is no other watchdog implementation. Thus, there is a "dummy_watchdog" module introduced that does nothing. This might be removed and replaced by something specific, if we ever build thin-edge.io for other targets, such as Apple, FreeBSD or others.
I'm going to request review by multiple people, so everyone knows about this and has the chance of saying something if this is not the right approach (because we might possibly need more like this in the future).
Liked the simplicity of this approach. But, let's merge it only after getting a wider consensus.
Are all target platforms tested on CI?
I guess only default linux (x86_64) and armv7 linux. I guess that's all.
Rebased and squashed.