kumquat-buildroot/package/mokutil/Config.in
Fabrice Fontaine 7233016f25 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>
2024-05-24 14:33:35 +02:00

35 lines
1.3 KiB
Plaintext

config BR2_PACKAGE_MOKUTIL
bool "mokutil"
# We're not selecting shim, but this package only makes sense
# on architectures on which shim is supported
depends on BR2_PACKAGE_SHIM_ARCH_SUPPORTS
depends on BR2_PACKAGE_EFIVAR_ARCH_SUPPORTS
depends on BR2_USE_MMU # keyutils
depends on !BR2_STATIC_LIBS # efivar, keyutils
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS # efivar
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # efivar
depends on BR2_TOOLCHAIN_HAS_THREADS # efivar
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
keys (MOK) stored in the database of shim.
"shim" is the first stage bootloader to support UEFI Secure
Boot. See also the "shim" package in the bootloaders
section.
https://github.com/lcp/mokutil
comment "mokutil needs a toolchain w/ dynamic library, threads, gcc >= 4.9, headers >= 3.12"
depends on BR2_PACKAGE_EFIVAR_ARCH_SUPPORTS
depends on BR2_PACKAGE_SHIM_ARCH_SUPPORTS
depends on BR2_USE_MMU
depends on BR2_STATIC_LIBS || \
BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
!BR2_TOOLCHAIN_HAS_THREADS || \
BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12