package/swupdate: add optional systemd dependency
authorJames Hilliard <james.hilliard1@gmail.com>
Mon, 30 Mar 2020 00:26:49 +0000 (18:26 -0600)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 4 Apr 2020 21:01:39 +0000 (23:01 +0200)
commitbea0d20c7885df962bdb800189522931a3b129c7
treeed271190fdb895da0d07b1757f5b7787e7584577
parent44d1b8ae2926b2536a9a99ca8dfecccdbecc507d
package/swupdate: add optional systemd dependency

When the swupdate SYSTEMD option is enabled, systemd needs to be built
before swupdate, otherwise the build fails with:

core/notifier.c:27:10: fatal error: systemd/sd-daemon.h: No such file or directory
   27 | #include <systemd/sd-daemon.h>
      |          ^~~~~~~~~~~~~~~~~~~~~

Of course, it remains up to the user to make sure that the systemd
package is enabled when systemd support is enabled in the swupdate
configuration.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/swupdate/swupdate.mk