diff options
| -rw-r--r-- | meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.4.3.bb | 12 |
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" | |||
| 70 | PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" | 70 | PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" |
| 71 | PACKAGECONFIG[luks2] = "--with-default-luks-format=LUKS2,--with-default-luks-format=LUKS1" | 71 | PACKAGECONFIG[luks2] = "--with-default-luks-format=LUKS2,--with-default-luks-format=LUKS1" |
| 72 | 72 | ||
| 73 | |||
| 73 | EXTRA_OECONF = "--enable-static" | 74 | EXTRA_OECONF = "--enable-static" |
| 74 | # Building without largefile is not supported by upstream | 75 | # Building without largefile is not supported by upstream |
| 75 | EXTRA_OECONF += "--enable-largefile" | 76 | EXTRA_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 |
| 79 | EXTRA_OECONF += "--disable-libargon2" | 80 | EXTRA_OECONF += "--disable-libargon2" |
| 80 | 81 | ||
| 82 | # libcryptsetup default PBKDF algorithm, Argon2 memory cost (KB), parallel threads and iteration time (ms) | ||
| 83 | LUKS2_PBKDF ?= "argon2i" | ||
| 84 | LUKS2_MEMORYKB ?= "1048576" | ||
| 85 | LUKS2_PARALLEL_THREADS ?= "4" | ||
| 86 | LUKS2_ITERTIME ?= "2000" | ||
| 87 | |||
| 88 | EXTRA_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 | |||
| 81 | FILES:${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}" | 93 | FILES:${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}" |
| 82 | 94 | ||
| 83 | RDEPENDS:${PN} = " \ | 95 | RDEPENDS:${PN} = " \ |
