From b96a4d090928daa90440dd11c0d5a377ef16e8e2 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 4 Feb 2019 20:13:27 +0100 Subject: [PATCH] package/systemd: add optional cryptsetup dependency Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/systemd/systemd.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 5b2abdc3fe..bbcc14901f 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -23,7 +23,6 @@ SYSTEMD_CONF_OPTS += \ -Dblkid=true \ -Dman=false \ -Dima=false \ - -Dlibcryptsetup=false \ -Defi=false \ -Dgnu-efi=false \ -Dldconfig=false \ @@ -57,6 +56,13 @@ else SYSTEMD_CONF_OPTS += -Daudit=false endif +ifeq ($(BR2_PACKAGE_CRYPTSETUP),y) +SYSTEMD_DEPENDENCIES += cryptsetup +SYSTEMD_CONF_OPTS += -Dlibcryptsetup=true +else +SYSTEMD_CONF_OPTS += -Dlibcryptsetup=false +endif + ifeq ($(BR2_PACKAGE_ELFUTILS),y) SYSTEMD_DEPENDENCIES += elfutils SYSTEMD_CONF_OPTS += -Delfutils=true -- 2.30.2