package/mokutil: select libxcrypt if needed

Fix the following build failure raised since the addition of the package
in commit 2e6e121496:

mokutil.c:45:10: fatal error: crypt.h: No such file or directory
   45 | #include <crypt.h>
      |          ^~~~~~~~~

Fixes: 2e6e121496
 - http://autobuild.buildroot.org/results/59e470ad6bf7f48314cd26ed4163c095e4c803ab

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Fabrice Fontaine 2024-05-17 22:53:15 +02:00 committed by Peter Korsgaard
parent d96b3c331c
commit 7233016f25
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ config BR2_PACKAGE_MOKUTIL
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 # efivar
select BR2_PACKAGE_EFIVAR
select BR2_PACKAGE_KEYUTILS
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
select BR2_PACKAGE_OPENSSL
help
mokutil is a tool to import or delete the machines owner

View File

@ -14,6 +14,7 @@ MOKUTIL_DEPENDENCIES = \
efivar \
host-pkgconf \
keyutils \
$(if $(BR2_PACKAGE_LIBXCRYPT),libxcrypt) \
openssl
$(eval $(autotools-package))