package/systemd: add optional support for qrencode
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>
Fri, 1 Jul 2016 21:51:24 +0000 (23:51 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 2 Jul 2016 11:06:05 +0000 (13:06 +0200)
The support of qrencode depends of the journal gateway feature as it is
used to display the key used to seal the journal.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/systemd/systemd.mk

index e57b595f6f907f9ee7a6d4a9aafe6605574c0e38..c79b64c7176c4d5e70af364643643f1a4d515121 100644 (file)
@@ -141,8 +141,14 @@ endif
 ifeq ($(BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY),y)
 SYSTEMD_DEPENDENCIES += libmicrohttpd
 SYSTEMD_CONF_OPTS += --enable-microhttpd
+ifeq ($(BR2_PACKAGE_LIBQRENCODE),y)
+SYSTEMD_CONF_OPTS += --enable-qrencode
+SYSTEMD_DEPENDENCIES += libqrencode
 else
-SYSTEMD_CONF_OPTS += --disable-microhttpd
+SYSTEMD_CONF_OPTS += --disable-qrencode
+endif
+else
+SYSTEMD_CONF_OPTS += --disable-microhttpd --disable-qrencode
 endif
 
 ifeq ($(BR2_PACKAGE_SYSTEMD_HWDB),y)