]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
efi: efistub: Convert into static library
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 2 Jul 2014 12:54:43 +0000 (14:54 +0200)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 18 Jul 2014 20:22:19 +0000 (21:22 +0100)
commitf4f75ad5741fe0331bbe1f5c42b906cda299f26b
tree0f06f0b7ecc94bc930a952dd79763adc94b34fda
parentbd669475d14e3279a7f96ed917a82df5da6ad52d
efi: efistub: Convert into static library

This patch changes both x86 and arm64 efistub implementations
from #including shared .c files under drivers/firmware/efi to
building shared code as a static library.

The x86 code uses a stub built into the boot executable which
uncompresses the kernel at boot time. In this case, the library is
linked into the decompressor.

In the arm64 case, the stub is part of the kernel proper so the library
is linked into the kernel proper as well.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
17 files changed:
arch/arm64/Kconfig
arch/arm64/Makefile
arch/arm64/kernel/Makefile
arch/arm64/kernel/efi-stub.c
arch/x86/boot/compressed/Makefile
arch/x86/boot/compressed/eboot.c
drivers/firmware/efi/Kconfig
drivers/firmware/efi/Makefile
drivers/firmware/efi/arm-stub.c [deleted file]
drivers/firmware/efi/efi-stub-helper.c [deleted file]
drivers/firmware/efi/efistub.h [deleted file]
drivers/firmware/efi/fdt.c [deleted file]
drivers/firmware/efi/libstub/Makefile [new file with mode: 0644]
drivers/firmware/efi/libstub/arm-stub.c [new file with mode: 0644]
drivers/firmware/efi/libstub/efi-stub-helper.c [new file with mode: 0644]
drivers/firmware/efi/libstub/efistub.h [new file with mode: 0644]
drivers/firmware/efi/libstub/fdt.c [new file with mode: 0644]