فهرست منبع

boot/shim: add BR2_PACKAGE_SHIM_ARCH_SUPPORTS

Add BR2_PACKAGE_SHIM_ARCH_SUPPORTS as requested by Thomas Petazzoni in
https://patchwork.ozlabs.org/project/buildroot/patch/20220419121409.2055818-1-fontaine.fabrice@gmail.com

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Arnout: reorder options according to check-package]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fabrice Fontaine 3 سال پیش
والد
کامیت
fd5842a1dd
1فایلهای تغییر یافته به همراه10 افزوده شده و 3 حذف شده
  1. 10 3
      boot/shim/Config.in

+ 10 - 3
boot/shim/Config.in

@@ -1,8 +1,15 @@
-config BR2_TARGET_SHIM
-	bool "shim"
+config BR2_PACKAGE_SHIM_ARCH_SUPPORTS
+	bool
+	default y if BR2_aarch64 || BR2_aarch64_be
+	default y if BR2_arm || BR2_armeb
+	default y if BR2_i386
+	default y if BR2_x86_64
 	# it includes gnu-efi
 	# it includes gnu-efi
 	depends on BR2_PACKAGE_GNU_EFI_ARCH_SUPPORTS
 	depends on BR2_PACKAGE_GNU_EFI_ARCH_SUPPORTS
-	depends on !BR2_mips64el
+
+config BR2_TARGET_SHIM
+	bool "shim"
+	depends on BR2_PACKAGE_SHIM_ARCH_SUPPORTS
 	help
 	help
 	  Boot loader to chain-load signed boot loaders under Secure
 	  Boot loader to chain-load signed boot loaders under Secure
 	  Boot.
 	  Boot.