xref: /openbmc/linux/drivers/firmware/efi/Makefile (revision e0a6aa30)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
204851772SMatt Fleming#
304851772SMatt Fleming# Makefile for linux kernel
404851772SMatt Fleming#
539d114ddSAndrey Ryabinin
639d114ddSAndrey Ryabinin#
739d114ddSAndrey Ryabinin# ARM64 maps efi runtime services in userspace addresses
839d114ddSAndrey Ryabinin# which don't have KASAN shadow. So dereference of these addresses
939d114ddSAndrey Ryabinin# in efi_call_virt() will cause crash if this code instrumented.
1039d114ddSAndrey Ryabinin#
1139d114ddSAndrey RyabininKASAN_SANITIZE_runtime-wrappers.o	:= n
1239d114ddSAndrey Ryabinin
1375def552SBhupesh Sharmaobj-$(CONFIG_ACPI_BGRT) 		+= efi-bgrt.o
1433b6d034SThiebaud Weksteenobj-$(CONFIG_EFI)			+= efi.o vars.o reboot.o memattr.o tpm.o
15*e0a6aa30SArd Biesheuvelobj-$(CONFIG_EFI)			+= memmap.o
16*e0a6aa30SArd Biesheuvelifneq ($(CONFIG_EFI_CAPSULE_LOADER),)
17*e0a6aa30SArd Biesheuvelobj-$(CONFIG_EFI)			+= capsule.o
18*e0a6aa30SArd Biesheuvelendif
19ac5abc70SArd Biesheuvelobj-$(CONFIG_EFI_PARAMS_FROM_FDT)	+= fdtparams.o
20a9499fa7STom Gundersenobj-$(CONFIG_EFI_VARS)			+= efivars.o
213846c158SPeter Jonesobj-$(CONFIG_EFI_ESRT)			+= esrt.o
2204851772SMatt Flemingobj-$(CONFIG_EFI_VARS_PSTORE)		+= efi-pstore.o
237ea6c6c1SLuck, Tonyobj-$(CONFIG_UEFI_CPER)			+= cper.o
24926172d4SDave Youngobj-$(CONFIG_EFI_RUNTIME_MAP)		+= runtime-map.o
25022ee6c5SArd Biesheuvelobj-$(CONFIG_EFI_RUNTIME_WRAPPERS)	+= runtime-wrappers.o
262fb2c179SMasahiro Yamadasubdir-$(CONFIG_EFI_STUB)		+= libstub
27199c8471SDan Williamsobj-$(CONFIG_EFI_FAKE_MEMMAP)		+= fake_map.o
2806f7d4a1SCompostella, Jeremyobj-$(CONFIG_EFI_BOOTLOADER_CONTROL)	+= efibc.o
29ff6301daSIvan Huobj-$(CONFIG_EFI_TEST)			+= test/
3046cd4b75SLukas Wunnerobj-$(CONFIG_EFI_DEV_PATH_PARSER)	+= dev-path-parser.o
3158c5475aSLukas Wunnerobj-$(CONFIG_APPLE_PROPERTIES)		+= apple-properties.o
321c5fecb6SNarendra Kobj-$(CONFIG_EFI_RCI2_TABLE)		+= rci2-table.o
33f0df68d5SHans de Goedeobj-$(CONFIG_EFI_EMBEDDED_FIRMWARE)	+= embedded-firmware.o
3458c90902SLenny Szubowiczobj-$(CONFIG_LOAD_UEFI_KEYS)		+= mokvar-table.o
35e5bc22a4SArd Biesheuvel
36199c8471SDan Williamsfake_map-y				+= fake_mem.o
37199c8471SDan Williamsfake_map-$(CONFIG_X86)			+= x86_fake_mem.o
38199c8471SDan Williams
39f30f242fSAtish Patraarm-obj-$(CONFIG_EFI)			:= efi-init.o arm-runtime.o
40da58fb65SArd Biesheuvelobj-$(CONFIG_ARM)			+= $(arm-obj-y)
41e5bc22a4SArd Biesheuvelobj-$(CONFIG_ARM64)			+= $(arm-obj-y)
42b91540d5SAtish Patrariscv-obj-$(CONFIG_EFI)			:= efi-init.o riscv-runtime.o
43b91540d5SAtish Patraobj-$(CONFIG_RISCV)			+= $(riscv-obj-y)
4465117f1aSKweh, Hock Leongobj-$(CONFIG_EFI_CAPSULE_LOADER)	+= capsule-loader.o
4569c1f396SArd Biesheuvelobj-$(CONFIG_EFI_EARLYCON)		+= earlycon.o
46c6d8c8efSTyler Baicarobj-$(CONFIG_UEFI_CPER_ARM)		+= cper-arm.o
47f9e1bdb9SYazen Ghannamobj-$(CONFIG_UEFI_CPER_X86)		+= cper-x86.o
48