summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb51
1 files changed, 49 insertions, 2 deletions
diff --git a/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb b/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb
index cf1d222423..51cecf5d23 100644
--- a/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb
+++ b/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb
@@ -9,7 +9,12 @@ SECTION = "console"
9LICENSE = "GPL-2.0-with-OpenSSL-exception" 9LICENSE = "GPL-2.0-with-OpenSSL-exception"
10LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326" 10LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"
11 11
12DEPENDS = "util-linux libdevmapper popt libgcrypt json-c" 12DEPENDS = " \
13 json-c \
14 libdevmapper \
15 popt \
16 util-linux \
17"
13 18
14SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz" 19SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz"
15SRC_URI[md5sum] = "41d8b985ef69242852b93e95d53e8e28" 20SRC_URI[md5sum] = "41d8b985ef69242852b93e95d53e8e28"
@@ -19,9 +24,45 @@ inherit autotools gettext pkgconfig
19 24
20# Use openssl because libgcrypt drops root privileges 25# Use openssl because libgcrypt drops root privileges
21# if libgcrypt is linked with libcap support 26# if libgcrypt is linked with libcap support
22PACKAGECONFIG ??= "openssl" 27PACKAGECONFIG ??= " \
28 keyring \
29 cryptsetup \
30 veritysetup \
31 cryptsetup-reencrypt \
32 integritysetup \
33 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \
34 udev \
35 kernel_crypto \
36 internal-argon2 \
37 blkid \
38 luks-adjust-xts-keysize \
39 openssl \
40"
41
42PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring"
43PACKAGECONFIG[fips] = "--enable-fips,--disable-fips"
44PACKAGECONFIG[pwquality] = "--enable-pwquality,--disable-pwquality,libpwquality"
45PACKAGECONFIG[passwdqc] = "--enable-passwdqc,--disable-passwdqc,passwdqc"
46PACKAGECONFIG[cryptsetup] = "--enable-cryptsetup,--disable-cryptsetup"
47PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable-veritysetup"
48PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup-reencrypt,--disable-cryptsetup-reencrypt"
49PACKAGECONFIG[integritysetup] = "--enable-integritysetup,--disable-integritysetup"
50PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux"
51PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev"
52PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-kernel_crypto"
53# gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn't
54# recognized.
55PACKAGECONFIG[gcrypt-pbkdf2] = "--enable-gcrypt-pbkdf2"
56PACKAGECONFIG[internal-argon2] = "--enable-internal-argon2,--disable-internal-argon2"
57PACKAGECONFIG[internal-sse-argon2] = "--enable-internal-sse-argon2,--disable-internal-sse-argon2"
58PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux"
59PACKAGECONFIG[dev-random] = "--enable-dev-random,--disable-dev-random"
60PACKAGECONFIG[luks-adjust-xts-keysize] = "--enable-luks-adjust-xts-keysize,--disable-luks-adjust-xts-keysize"
23PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl" 61PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl"
24PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt" 62PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt"
63PACKAGECONFIG[nss] = "--with-crypto_backend=nss,,nss"
64PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel"
65PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle"
25 66
26RRECOMMENDS_${PN} = "kernel-module-aes-generic \ 67RRECOMMENDS_${PN} = "kernel-module-aes-generic \
27 kernel-module-dm-crypt \ 68 kernel-module-dm-crypt \
@@ -32,6 +73,12 @@ RRECOMMENDS_${PN} = "kernel-module-aes-generic \
32" 73"
33 74
34EXTRA_OECONF = "--enable-static" 75EXTRA_OECONF = "--enable-static"
76# Building without largefile is not supported by upstream
77EXTRA_OECONF += "--enable-largefile"
78# Requires a static popt library
79EXTRA_OECONF += "--disable-static-cryptsetup"
80# There's no recipe for libargon2 yet
81EXTRA_OECONF += "--disable-libargon2"
35 82
36FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}" 83FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}"
37 84