package/cryptsetup: argp is needed for SSH plugin

argp is needed for SSH plugin to avoid the following build failure
raised since bump to version 2.4.2 in commit
b537fe1433:

configure: error: You need argp library.

Fixes:
 - http://autobuild.buildroot.org/results/6740792920a28c91f4f82a8f8c2fb525ed80410a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2021-12-30 10:13:30 +01:00 committed by Thomas Petazzoni
parent 47eead8aad
commit 1b4e5f4c57
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,8 @@ config BR2_PACKAGE_CRYPTSETUP
depends on BR2_USE_MMU # lvm2, libargon2
depends on !BR2_STATIC_LIBS # lvm2, libargon2
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)
select BR2_PACKAGE_POPT
select BR2_PACKAGE_LVM2
select BR2_PACKAGE_UTIL_LINUX

View File

@ -34,7 +34,9 @@ CRYPTSETUP_CONF_OPTS += --with-crypto_backend=kernel
endif
ifeq ($(BR2_PACKAGE_LIBSSH),y)
CRYPTSETUP_DEPENDENCIES += libssh
CRYPTSETUP_DEPENDENCIES += \
$(if $(BR2_PACKAGE_ARGP_STANDALONE),argp-standalone) \
libssh
CRYPTSETUP_CONF_OPTS += --enable-ssh-token
else
CRYPTSETUP_CONF_OPTS += --disable-ssh-token