summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.4.3.bb12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.4.3.bb b/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.4.3.bb
index 8f9f663a33..435b554777 100644
--- a/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.4.3.bb
+++ b/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.4.3.bb
@@ -70,6 +70,7 @@ PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel"
70PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" 70PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle"
71PACKAGECONFIG[luks2] = "--with-default-luks-format=LUKS2,--with-default-luks-format=LUKS1" 71PACKAGECONFIG[luks2] = "--with-default-luks-format=LUKS2,--with-default-luks-format=LUKS1"
72 72
73
73EXTRA_OECONF = "--enable-static" 74EXTRA_OECONF = "--enable-static"
74# Building without largefile is not supported by upstream 75# Building without largefile is not supported by upstream
75EXTRA_OECONF += "--enable-largefile" 76EXTRA_OECONF += "--enable-largefile"
@@ -78,6 +79,17 @@ EXTRA_OECONF += "--disable-static-cryptsetup"
78# There's no recipe for libargon2 yet 79# There's no recipe for libargon2 yet
79EXTRA_OECONF += "--disable-libargon2" 80EXTRA_OECONF += "--disable-libargon2"
80 81
82# libcryptsetup default PBKDF algorithm, Argon2 memory cost (KB), parallel threads and iteration time (ms)
83LUKS2_PBKDF ?= "argon2i"
84LUKS2_MEMORYKB ?= "1048576"
85LUKS2_PARALLEL_THREADS ?= "4"
86LUKS2_ITERTIME ?= "2000"
87
88EXTRA_OECONF += "--with-luks2-pbkdf=${LUKS2_PBKDF} \
89 --with-luks2-memory-kb=${LUKS2_MEMORYKB} \
90 --with-luks2-parallel-threads=${LUKS2_PARALLEL_THREADS} \
91 --with-luks2-iter-time=${LUKS2_ITERTIME}"
92
81FILES:${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}" 93FILES:${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}"
82 94
83RDEPENDS:${PN} = " \ 95RDEPENDS:${PN} = " \