162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Makefile for linux kernel
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#
762306a36Sopenharmony_ci# ARM64 maps efi runtime services in userspace addresses
862306a36Sopenharmony_ci# which don't have KASAN shadow. So dereference of these addresses
962306a36Sopenharmony_ci# in efi_call_virt() will cause crash if this code instrumented.
1062306a36Sopenharmony_ci#
1162306a36Sopenharmony_ciKASAN_SANITIZE_runtime-wrappers.o	:= n
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciobj-$(CONFIG_ACPI_BGRT) 		+= efi-bgrt.o
1462306a36Sopenharmony_ciobj-$(CONFIG_EFI)			+= efi.o vars.o reboot.o memattr.o tpm.o
1562306a36Sopenharmony_ciobj-$(CONFIG_EFI)			+= memmap.o
1662306a36Sopenharmony_ciifneq ($(CONFIG_EFI_CAPSULE_LOADER),)
1762306a36Sopenharmony_ciobj-$(CONFIG_EFI)			+= capsule.o
1862306a36Sopenharmony_ciendif
1962306a36Sopenharmony_ciobj-$(CONFIG_EFI_PARAMS_FROM_FDT)	+= fdtparams.o
2062306a36Sopenharmony_ciobj-$(CONFIG_EFI_ESRT)			+= esrt.o
2162306a36Sopenharmony_ciobj-$(CONFIG_EFI_VARS_PSTORE)		+= efi-pstore.o
2262306a36Sopenharmony_ciobj-$(CONFIG_UEFI_CPER)			+= cper.o cper_cxl.o
2362306a36Sopenharmony_ciobj-$(CONFIG_EFI_RUNTIME_WRAPPERS)	+= runtime-wrappers.o
2462306a36Sopenharmony_cisubdir-$(CONFIG_EFI_STUB)		+= libstub
2562306a36Sopenharmony_ciobj-$(CONFIG_EFI_BOOTLOADER_CONTROL)	+= efibc.o
2662306a36Sopenharmony_ciobj-$(CONFIG_EFI_TEST)			+= test/
2762306a36Sopenharmony_ciobj-$(CONFIG_EFI_DEV_PATH_PARSER)	+= dev-path-parser.o
2862306a36Sopenharmony_ciobj-$(CONFIG_APPLE_PROPERTIES)		+= apple-properties.o
2962306a36Sopenharmony_ciobj-$(CONFIG_EFI_RCI2_TABLE)		+= rci2-table.o
3062306a36Sopenharmony_ciobj-$(CONFIG_EFI_EMBEDDED_FIRMWARE)	+= embedded-firmware.o
3162306a36Sopenharmony_ciobj-$(CONFIG_LOAD_UEFI_KEYS)		+= mokvar-table.o
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ciobj-$(CONFIG_SYSFB)			+= sysfb_efi.o
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciarm-obj-$(CONFIG_EFI)			:= efi-init.o arm-runtime.o
3662306a36Sopenharmony_ciobj-$(CONFIG_ARM)			+= $(arm-obj-y)
3762306a36Sopenharmony_ciobj-$(CONFIG_ARM64)			+= $(arm-obj-y)
3862306a36Sopenharmony_ciriscv-obj-$(CONFIG_EFI)			:= efi-init.o riscv-runtime.o
3962306a36Sopenharmony_ciobj-$(CONFIG_RISCV)			+= $(riscv-obj-y)
4062306a36Sopenharmony_ciobj-$(CONFIG_EFI_CAPSULE_LOADER)	+= capsule-loader.o
4162306a36Sopenharmony_ciobj-$(CONFIG_EFI_EARLYCON)		+= earlycon.o
4262306a36Sopenharmony_ciobj-$(CONFIG_UEFI_CPER_ARM)		+= cper-arm.o
4362306a36Sopenharmony_ciobj-$(CONFIG_UEFI_CPER_X86)		+= cper-x86.o
4462306a36Sopenharmony_ciobj-$(CONFIG_UNACCEPTED_MEMORY)		+= unaccepted_memory.o
45