efistub: convert into static library
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest0 of 5 patches 0 repliesNew
- v23 of 5 patches 0 repliesSuperseded
- v1 RFC1 of 4 patches 0 repliesSuperseded
Patches in v3 No applies recorded yet
None of the 5 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/5] efistub: convert into static library
Quoted 38 lines · Ard Biesheuvel
This is v3 of the series to change the #include "
../../../../xxx.c" pattern into a static library linked into either the kernel (arm64) or a separate boot decompressor (x86, ARM).Changes since v2:
- make sure that removals of 'static' modifiers occur in a way that doesn't break bisect (i.e., definition + all declarations in the same patch)
- avoid ia64 breakage (which does not use the stub) by building it conditionally onCONFIG_EFI_STUBnotCONFIG_EFIChanges since v1:
- added patch #1 to changeEFI_ERROR, it is not a result code defined by UEFI so it should only be returned byget_dram_base()andefi_entry()
- added a section to libstubMakefileto clean CFLAGS of stack protecter and other options that are inappropriate for the stub
- rebased onto the UEFI Runtime Services NEON patches (re)posted earlier todayArd Biesheuvel (5):
efi/arm64: AvoidEFI_ERRORas a generic return code efi/x86: efistub: Move shared dependencies to <asm/efi.h> efi/arm64: efistub: Move shared dependencies to <asm/efi.h>
efi: efistub: refactor stub components
efi: efistub: convert into static libraryarch/arm64/Kconfig | 5 ++ arch/arm64/Makefile | 1 + arch/arm64/include/asm/efi.h | 12 ++++ arch/arm64/kernel/efi-stub.c | 48 +++----------- arch/x86/boot/compressed/Makefile | 3 +- arch/x86/boot/compressed/eboot.c | 20 ++---- arch/x86/boot/compressed/eboot.h | 16 ----- arch/x86/include/asm/efi.h | 25 ++++++++ drivers/firmware/efi/Kconfig | 3 + drivers/firmware/efi/Makefile | 1 + drivers/firmware/efi/libstub/Makefile | 26 ++++++++ drivers/firmware/efi/{ => libstub}/arm-stub.c | 32 ++++++---- .../firmware/efi/{ => libstub}/efi-stub-helper.c | 74 +++++++++++----------- drivers/firmware/efi/libstub/efistub.h | 42 ++++++++++++
Quoted 8 lines
drivers/firmware/efi/{ => libstub}/fdt.c | 20 +++---
include/linux/efi.h | 42 ++++++++++++
16 files changed, 242 insertions(+), 128 deletions(-)
create mode 100644 drivers/firmware/efi/libstub/Makefile
rename drivers/firmware/efi/{ => libstub}/arm-stub.c (93%)
rename drivers/firmware/efi/{ => libstub}/efi-stub-helper.c (88%)
create mode 100644 drivers/firmware/efi/libstub/efistub.h
rename drivers/firmware/efi/{ => libstub}/fdt.c (94%)Thanks Ard, queued up for v3.17.
Signature · 1 line
Matt Fleming, Intel Open Source Technology Center