summaryrefslogtreecommitdiffstats
path: root/tools/elf2efi.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add .pylintrc to globally suppress warnings we don't really care aboutFrantisek Sumsal2023-08-101-1/+1
| | | | Also, drop the respective disable directives from existing files.
* elf2efi: Fix header size calculationJan Janssen2023-07-301-2/+10
| | | | | | The PE header size calculation failed to take the PE magic and coff header size into account, which will lead to header truncation if we are writing only 5 sections.
* elf2efi: Make compatible with python 3.6 againDaan De Meyer2023-07-141-8/+8
| | | | | | | CentOS 8 ships python 3.6 so let's try and stay compatible with that since the only feature we're using that requires python 3.9 is the streamlined type annotations which are trivial to convert back to the older stuff to stay compatible with python 3.6.
* elf2efi: add parameter to increase reserved space for headersLuca Boccassi2023-05-241-1/+8
| | | | | | When building a minimal empty addon it would not have enough space to append sections. Add an option that will later be used to reserve enough space.
* elf2efi: Do not emit an empty relocation sectionJan Janssen2023-05-231-4/+9
| | | | | | | At least shim will choke on an empty relocation section when loading the binary. Note that the binary is still considered relocatable (just with no base relocations to apply) as we do not set the IMAGE_FILE_RELOCS_STRIPPED DLL characteristic.
* boot: Add RISCV32 and LoongArch supportJan Janssen2023-03-101-1/+4
| | | | | This is completely untested, but should work in theory, as it's just adding a couple defines according to the specs.
* boot: Bring back bootloader buildsJan Janssen2023-03-101-0/+578
This adds back sd-boot builds by using meson compile targets directly. We can do this now, because userspace binaries use the special dependency that allows us to easily separate flags, so that we don't pass anything to EFI builds that shouldn't be passed. Additionally, we pass a bunch of flags to hopefully disable/override any distro provided flags that should not be used for EFI binaries. Fixes: #12275