cryptsetup: Don't enable udev for native build
PATCH 1/1 cryptsetup: Don't enable udev for native build
When building cryptsetup-native, don't enable udev support since there is not a udev-native recipe.
When udev is enabled, change the dependency from a DEPENDS to an RDEPENDS. The --enable-udev option adds a runtime check for udev before using udev features of libdevmapper. Because of this, udev isn't needed at build time, just runtime.
Signed-off-by Robert Joslyn <[email protected]>
--- meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4 -2
@@ -31,13 +31,15 @@ PACKAGECONFIG ??= " \ cryptsetup-reencrypt \ integritysetup \ ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ - udev \ kernel_crypto \ internal-argon2 \ blkid \ luks-adjust-xts-keysize \ openssl \ " +PACKAGECONFIG_append_class-target = " \ + udev \ +" PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring" PACKAGECONFIG[fips] = "--enable-fips,--disable-fips"
@@ -48,7 +50,7 @@ PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable-veritysetup" PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup-reencrypt,--disable-cryptsetup-reencrypt" PACKAGECONFIG[integritysetup] = "--enable-integritysetup,--disable-integritysetup" PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" -PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" +PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,,udev" PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-kernel_crypto" # gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn't # recognized.
Signature · 1 line
2.21.0
Quoted 9 lines · Robert Joslyn
When building cryptsetup-native, don't enable udev support since there is not a udev-native recipe.
When udev is enabled, change the dependency from a DEPENDS to an RDEPENDS. The --enable-udev option adds a runtime check for udev before using udev features of libdevmapper. Because of this, udev isn't needed at build time, just runtime.
Signed-off-by Robert Joslyn <[email protected]>
Thanks!
Reviewed-by Mikko Rapeli <[email protected]>
Quoted 42 lines
--- meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4
-2@@ -31,13 +31,15 @@ PACKAGECONFIG ??= " \ cryptsetup-reencrypt \ integritysetup \ ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ - udev \ kernel_crypto \ internal-argon2 \ blkid \ luks-adjust-xts-keysize \ openssl \ " +PACKAGECONFIG_append_class-target = " \ + udev \ +" PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring" PACKAGECONFIG[fips] = "--enable-fips,--disable-fips"@@ -48,7 +50,7 @@ PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable-veritysetup" PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup-reencrypt,--disable-cryptsetup-reencrypt" PACKAGECONFIG[integritysetup] = "--enable-integritysetup,--disable-integritysetup" PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" -PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" +PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,,udev" PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-kernel_crypto" # gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn't # recognized.Signature · 7 lines
2.21.0 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel