aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-02-04 20:13:27 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-02-10 14:07:27 +0100
commitb96a4d090928daa90440dd11c0d5a377ef16e8e2 (patch)
treebf5de85af1efe60c8c17c363ea2c587ce948c2a9
parente0f3138f819f29fcd5d37b429ccc3626fd15afe8 (diff)
downloadbuildroot-b96a4d090928daa90440dd11c0d5a377ef16e8e2.tar.gz
buildroot-b96a4d090928daa90440dd11c0d5a377ef16e8e2.tar.bz2
package/systemd: add optional cryptsetup dependency
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/systemd/systemd.mk8
1 files changed, 7 insertions, 1 deletions
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