diff options
| author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2024-07-28 21:20:53 +0300 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2025-01-15 16:16:35 -0500 |
| commit | 196cbb9e74b8c25bbdb68944ad99ba69fa4dcaaf (patch) | |
| tree | 9193dce8d1f56352a6c6cf294bb5ce5a17e00157 | |
| parent | 2a1cbe6633c1cad8af0792075cd4e4b3e28c565e (diff) | |
| download | efi-boot-shim-196cbb9e74b8c25bbdb68944ad99ba69fa4dcaaf.tar.gz efi-boot-shim-196cbb9e74b8c25bbdb68944ad99ba69fa4dcaaf.zip | |
Increase EFI file alignment
Although file alignment for EFI apps is not clear, most of the UEFI
accept defaulf file alignment (0x200). Nevertheless some of the UEFI
bootloaders require file alignment to be 0x1000 (e.g. Lenovo Miix 630,
Lenovo Yoga C630, etc). Increase file alignment to the desired value.
Fixes #670
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
| -rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -269,6 +269,7 @@ endif -j .dynamic -j .rodata -j .rel* \ -j .rela* -j .dyn -j .reloc -j .eh_frame \ -j .vendor_cert -j .sbat -j .sbatlevel \ + --file-alignment 0x1000 \ $(FORMAT) $< $@ ./post-process-pe -vv $(POST_PROCESS_PE_FLAGS) $@ @@ -288,6 +289,7 @@ endif -j .debug_info -j .debug_abbrev -j .debug_aranges \ -j .debug_line -j .debug_str -j .debug_ranges \ -j .note.gnu.build-id \ + --file-alignment 0x1000 \ $< $@ ifneq ($(origin ENABLE_SBSIGN),undefined) |
