package/cryptsetup: add static build support

Add static build support as lvm2 supports static library now

Cryptsetup external-tokens feature still requires dynamic library

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
Andreas Mohr
2026-05-23 15:19:04 +00:00
committed by Arnout Vandecappelle
parent 85eb42f33d
commit 665d4c5b3d
2 changed files with 6 additions and 3 deletions

View File

@@ -2,7 +2,6 @@ config BR2_PACKAGE_CRYPTSETUP
bool "cryptsetup"
depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
depends on BR2_USE_MMU # lvm2, libargon2
depends on !BR2_STATIC_LIBS # lvm2
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
select BR2_PACKAGE_ARGP_STANDALONE if BR2_PACKAGE_LIBSSH && \
(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL)
@@ -20,7 +19,7 @@ config BR2_PACKAGE_CRYPTSETUP
https://gitlab.com/cryptsetup/cryptsetup
comment "cryptsetup needs a toolchain w/ threads, dynamic library"
comment "cryptsetup needs a toolchain w/ threads"
depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_TOOLCHAIN_HAS_THREADS

View File

@@ -61,6 +61,10 @@ ifeq ($(BR2_PACKAGE_SYSTEMD),y)
CRYPTSETUP_CONF_OPTS += --with-tmpfilesdir=/usr/lib/tmpfiles.d
endif
ifeq ($(BR2_STATIC_LIBS),y)
CRYPTSETUP_CONF_OPTS += --disable-external-tokens
endif
HOST_CRYPTSETUP_DEPENDENCIES = \
host-pkgconf \
host-lvm2 \