2013-02-08 23:48:51 +08:00
|
|
|
#
|
|
|
|
# Makefile for linux kernel
|
|
|
|
#
|
2015-10-12 23:52:58 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# ARM64 maps efi runtime services in userspace addresses
|
|
|
|
# which don't have KASAN shadow. So dereference of these addresses
|
|
|
|
# in efi_call_virt() will cause crash if this code instrumented.
|
|
|
|
#
|
|
|
|
KASAN_SANITIZE_runtime-wrappers.o := n
|
|
|
|
|
2016-04-26 04:06:45 +08:00
|
|
|
obj-$(CONFIG_EFI) += efi.o vars.o reboot.o memattr.o
|
2016-04-26 04:06:59 +08:00
|
|
|
obj-$(CONFIG_EFI) += capsule.o
|
2013-02-08 23:37:06 +08:00
|
|
|
obj-$(CONFIG_EFI_VARS) += efivars.o
|
efi: Work around ia64 build problem with ESRT driver
So, I'm told this problem exists in the world:
> Subject: Build error in -next due to 'efi: Add esrt support'
>
> Building ia64:defconfig ... failed
> --------------
> Error log:
>
> drivers/firmware/efi/esrt.c:28:31: fatal error: asm/early_ioremap.h: No such file or directory
>
I'm not really sure how it's okay that we have things in asm-generic on
some platforms but not others - is having it the same everywhere not the
whole point of asm-generic?
That said, ia64 doesn't have early_ioremap.h . So instead, since it's
difficult to imagine new IA64 machines with UEFI 2.5, just don't build
this code there.
To me this looks like a workaround - doing something like:
generic-y += early_ioremap.h
in arch/ia64/include/asm/Kbuild would appear to be more correct, but
ia64 has its own early_memremap() decl in arch/ia64/include/asm/io.h ,
and it's a macro. So adding the above /and/ requiring that asm/io.h be
included /after/ asm/early_ioremap.h in all cases would fix it, but
that's pretty ugly as well. Since I'm not going to spend the rest of my
life rectifying ia64 headers vs "generic" headers that aren't generic,
it's much simpler to just not build there.
Note that I've only actually tried to build this patch on x86_64, but
esrt.o still gets built there, and that would seem to demonstrate that
the conditional building is working correctly at all the places the code
built before. I no longer have any ia64 machines handy to test that the
exclusion actually works there.
Signed-off-by: Peter Jones <pjones@redhat.com>
Acked-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
(Compile-)Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2015-06-06 03:14:54 +08:00
|
|
|
obj-$(CONFIG_EFI_ESRT) += esrt.o
|
2013-02-08 23:48:51 +08:00
|
|
|
obj-$(CONFIG_EFI_VARS_PSTORE) += efi-pstore.o
|
2013-10-29 05:06:55 +08:00
|
|
|
obj-$(CONFIG_UEFI_CPER) += cper.o
|
2013-12-20 18:02:18 +08:00
|
|
|
obj-$(CONFIG_EFI_RUNTIME_MAP) += runtime-map.o
|
2014-06-26 18:09:05 +08:00
|
|
|
obj-$(CONFIG_EFI_RUNTIME_WRAPPERS) += runtime-wrappers.o
|
2014-11-06 00:00:56 +08:00
|
|
|
obj-$(CONFIG_EFI_STUB) += libstub/
|
2015-09-30 22:01:56 +08:00
|
|
|
obj-$(CONFIG_EFI_FAKE_MEMMAP) += fake_mem.o
|
2016-04-26 04:06:57 +08:00
|
|
|
obj-$(CONFIG_EFI_BOOTLOADER_CONTROL) += efibc.o
|
2015-11-30 20:28:18 +08:00
|
|
|
|
|
|
|
arm-obj-$(CONFIG_EFI) := arm-init.o arm-runtime.o
|
2015-09-25 04:49:52 +08:00
|
|
|
obj-$(CONFIG_ARM) += $(arm-obj-y)
|
2015-11-30 20:28:18 +08:00
|
|
|
obj-$(CONFIG_ARM64) += $(arm-obj-y)
|
2016-04-26 04:07:01 +08:00
|
|
|
obj-$(CONFIG_EFI_CAPSULE_LOADER) += capsule-loader.o
|