]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - lib/efi_loader/Kconfig
efi: Conflict efi_loader with different stub bitness
[people/ms/u-boot.git] / lib / efi_loader / Kconfig
index d2b6327119b401abf342da83c614bb26ea717158..827c267b601472fec86dad7548bab651d0181532 100644 (file)
@@ -1,6 +1,10 @@
 config EFI_LOADER
        bool "Support running EFI Applications in U-Boot"
        depends on (ARM || X86) && OF_LIBFDT
+       # We need EFI_STUB_64BIT to be set on x86_64 with EFI_STUB
+       depends on !EFI_STUB || !X86_64 || EFI_STUB_64BIT
+       # We need EFI_STUB_32BIT to be set on x86_32 with EFI_STUB
+       depends on !EFI_STUB || !X86 || X86_64 || EFI_STUB_32BIT
        default y
        help
          Select this option if you want to run EFI applications (like grub2)