diff options
-rw-r--r-- | meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb | 51 |
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" | |||
9 | LICENSE = "GPL-2.0-with-OpenSSL-exception" | 9 | LICENSE = "GPL-2.0-with-OpenSSL-exception" |
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326" |
11 | 11 | ||
12 | DEPENDS = "util-linux libdevmapper popt libgcrypt json-c" | 12 | DEPENDS = " \ |
13 | json-c \ | ||
14 | libdevmapper \ | ||
15 | popt \ | ||
16 | util-linux \ | ||
17 | " | ||
13 | 18 | ||
14 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz" | 19 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz" |
15 | SRC_URI[md5sum] = "41d8b985ef69242852b93e95d53e8e28" | 20 | SRC_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 |
22 | PACKAGECONFIG ??= "openssl" | 27 | PACKAGECONFIG ??= " \ |
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 | |||
42 | PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring" | ||
43 | PACKAGECONFIG[fips] = "--enable-fips,--disable-fips" | ||
44 | PACKAGECONFIG[pwquality] = "--enable-pwquality,--disable-pwquality,libpwquality" | ||
45 | PACKAGECONFIG[passwdqc] = "--enable-passwdqc,--disable-passwdqc,passwdqc" | ||
46 | PACKAGECONFIG[cryptsetup] = "--enable-cryptsetup,--disable-cryptsetup" | ||
47 | PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable-veritysetup" | ||
48 | PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup-reencrypt,--disable-cryptsetup-reencrypt" | ||
49 | PACKAGECONFIG[integritysetup] = "--enable-integritysetup,--disable-integritysetup" | ||
50 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" | ||
51 | PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" | ||
52 | PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-kernel_crypto" | ||
53 | # gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn't | ||
54 | # recognized. | ||
55 | PACKAGECONFIG[gcrypt-pbkdf2] = "--enable-gcrypt-pbkdf2" | ||
56 | PACKAGECONFIG[internal-argon2] = "--enable-internal-argon2,--disable-internal-argon2" | ||
57 | PACKAGECONFIG[internal-sse-argon2] = "--enable-internal-sse-argon2,--disable-internal-sse-argon2" | ||
58 | PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux" | ||
59 | PACKAGECONFIG[dev-random] = "--enable-dev-random,--disable-dev-random" | ||
60 | PACKAGECONFIG[luks-adjust-xts-keysize] = "--enable-luks-adjust-xts-keysize,--disable-luks-adjust-xts-keysize" | ||
23 | PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl" | 61 | PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl" |
24 | PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt" | 62 | PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt" |
63 | PACKAGECONFIG[nss] = "--with-crypto_backend=nss,,nss" | ||
64 | PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel" | ||
65 | PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" | ||
25 | 66 | ||
26 | RRECOMMENDS_${PN} = "kernel-module-aes-generic \ | 67 | RRECOMMENDS_${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 | ||
34 | EXTRA_OECONF = "--enable-static" | 75 | EXTRA_OECONF = "--enable-static" |
76 | # Building without largefile is not supported by upstream | ||
77 | EXTRA_OECONF += "--enable-largefile" | ||
78 | # Requires a static popt library | ||
79 | EXTRA_OECONF += "--disable-static-cryptsetup" | ||
80 | # There's no recipe for libargon2 yet | ||
81 | EXTRA_OECONF += "--disable-libargon2" | ||
35 | 82 | ||
36 | FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}" | 83 | FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}" |
37 | 84 | ||