[oe] [meta-oe][PATCH] cryptsetup: Don't enable udev for native build
Mikko.Rapeli at bmw.de
Mikko.Rapeli at bmw.de
Wed Jul 3 06:59:36 UTC 2019
On Tue, Jul 02, 2019 at 09:51:18PM -0700, Robert Joslyn wrote:
> 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 <robert.joslyn at redrectangle.org>
Thanks!
Reviewed-by: Mikko Rapeli <mikko.rapeli at bmw.de>
> ---
> meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb | 6 ++++--
> 1 file changed, 4 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 51cecf5d2..a500b1898 100644
> --- a/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb
> +++ b/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb
> @@ -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.
> --
> 2.21.0
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
More information about the Openembedded-devel
mailing list