浏览代码

package/mokutil: select libxcrypt if needed

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

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

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Fabrice Fontaine 1 年之前
父节点
当前提交
7233016f25
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      package/mokutil/Config.in
  2. 1 0
      package/mokutil/mokutil.mk

+ 1 - 0
package/mokutil/Config.in

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

+ 1 - 0
package/mokutil/mokutil.mk

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