efi: ia64: disable the capsule loader
authorArd Biesheuvel <ardb@kernel.org>
Sun, 13 Dec 2020 08:39:40 +0000 (09:39 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 14 Dec 2020 15:24:19 +0000 (16:24 +0100)
commite0a6aa30504cb8179d07609fb6386705e8f00663
treeca9f67f34af06922b60f19c8038400dccb9df3c5
parent54649911f31b6e7c2a79a1426ca98259139e4c35
efi: ia64: disable the capsule loader

EFI capsule loading is a feature that was introduced into EFI long after
its initial introduction on Itanium, and it is highly unlikely that IA64
systems are receiving firmware updates in the first place, let alone
using EFI capsules.

So let's disable capsule support altogether on IA64. This fixes a build
error on IA64 due to a recent change that added an unconditional
include of asm/efi.h, which IA64 does not provide.

While at it, tweak the make rules a bit so that the EFI capsule
component that is always builtin (even if the EFI capsule loader itself
is built as a module) is omitted for all architectures if the module is
not enabled in the build.

Cc: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/linux-efi/20201214152200.38353-1-ardb@kernel.org
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/Kconfig
drivers/firmware/efi/Makefile
include/linux/efi.h