mokutil unconditionally uses X509_get0_subject_key_id resulting in the following build failure with libressl since its addition in commit2e6e121496: /home/autobuild/autobuild/instance-18/output-1/host/lib/gcc/i686-buildroot-linux-uclibc/13.3.0/../../../../i686-buildroot-linux-uclibc/bin/ld: mokutil-efi_x509.o: in function `get_cert_skid': efi_x509.c:(.text+0x4e6): undefined reference to `X509_get0_subject_key_id' Fixes:2e6e121496- http://autobuild.buildroot.org/results/88b549734eae4b25de1b8e1c4f04bace0a7e7418 - http://autobuild.buildroot.org/results/05ac319bfb2a252f3dcdc5d04761f276afb53b6f Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
36 lines
1.3 KiB
Plaintext
36 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
|
|
select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
|
|
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
|