]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86/efi/bgrt: Move efi-bgrt handling out of arch/x86
authorBhupesh Sharma <bhsharma@redhat.com>
Tue, 4 Apr 2017 16:02:40 +0000 (17:02 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 5 Apr 2017 10:27:24 +0000 (12:27 +0200)
Now with open-source boot firmware (EDK2) supporting ACPI BGRT table
addition even for architectures like AARCH64, it makes sense to move
out the 'efi-bgrt.c' file and supporting infrastructure from 'arch/x86'
directory and house it inside 'drivers/firmware/efi', so that this common
code can be used across architectures.

Signed-off-by: Bhupesh Sharma <bhsharma@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20170404160245.27812-7-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/efi/Makefile
drivers/firmware/efi/Makefile
drivers/firmware/efi/efi-bgrt.c [moved from arch/x86/platform/efi/efi-bgrt.c with 100% similarity]

index 066619b0700c91643c31c49f1cbc8f2d4899bb88..f1d83b34c32970ce5a0c5482a9cccd61fcbcdfe9 100644 (file)
@@ -1,6 +1,5 @@
 OBJECT_FILES_NON_STANDARD_efi_thunk_$(BITS).o := y
 
 obj-$(CONFIG_EFI)              += quirks.o efi.o efi_$(BITS).o efi_stub_$(BITS).o
-obj-$(CONFIG_ACPI_BGRT) += efi-bgrt.o
 obj-$(CONFIG_EARLY_PRINTK_EFI) += early_printk.o
 obj-$(CONFIG_EFI_MIXED)                += efi_thunk_$(BITS).o
index ad67342313ed789af22bc67c1cd5bcd2fa56c59d..0329d319d89a0cd6164c1470e5e73506123d4c5f 100644 (file)
@@ -9,6 +9,7 @@
 #
 KASAN_SANITIZE_runtime-wrappers.o      := n
 
+obj-$(CONFIG_ACPI_BGRT)                += efi-bgrt.o
 obj-$(CONFIG_EFI)                      += efi.o vars.o reboot.o memattr.o
 obj-$(CONFIG_EFI)                      += capsule.o memmap.o
 obj-$(CONFIG_EFI_VARS)                 += efivars.o