| 3c5ca68b | 17-Nov-2025 |
Warner Losh <imp@FreeBSD.org> |
stand: Fix secureboot build
Make libesecureboot build, enabled when WITH_BEARSSL=y WITH_LOADER_EFI_SECUREBOOT=y.
Copy EDK2 files related to secure boot to sys/contrib/edk2 and delete duplicates und
stand: Fix secureboot build
Make libesecureboot build, enabled when WITH_BEARSSL=y WITH_LOADER_EFI_SECUREBOOT=y.
Copy EDK2 files related to secure boot to sys/contrib/edk2 and delete duplicates under libsecreboot/efi/include. Adjust efi_variables.c to build in the new environment.
Undefine MIN and MAX before include sys/param.h in libsecureboot.h. I'm not sure that sys/param.h is needed here, but either the param.h or the Base.h definitions are fine.
Fix include paths to reflect the new way.
Fixes: 43b8edb32051 Sponsored by: Netflix
show more ...
|
| c570deb1 | 17-Nov-2025 |
Warner Losh <imp@FreeBSD.org> |
edk2: Import UefiCpuPkg/Include/Protocol/RiscVBootProtocol.h
Import UefiCpuPkg/Include/Protocol/RiscVBootProtocol.h to Include/Protocol. This is another direct copy that needs to be carefully consid
edk2: Import UefiCpuPkg/Include/Protocol/RiscVBootProtocol.h
Import UefiCpuPkg/Include/Protocol/RiscVBootProtocol.h to Include/Protocol. This is another direct copy that needs to be carefully considered in future imports. For now, it's easier to add this incrementally here.
Sponsored by: Netflix
show more ...
|
| 499d2ed1 | 17-Nov-2025 |
Warner Losh <imp@FreeBSD.org> |
Base.h: Ifdef out always char purity test.
Now that we've moved to always using this, it turns out the the funky thing we have for L'a' is everywhere. Removing this check until I can sort it out. Th
Base.h: Ifdef out always char purity test.
Now that we've moved to always using this, it turns out the the funky thing we have for L'a' is everywhere. Removing this check until I can sort it out. This breaks the build on armv7 otherwise.
Fixes: 43b8edb32051 Sponsored by: Netflix
show more ...
|
| af6d77c0 | 17-Nov-2025 |
Warner Losh <imp@FreeBSD.org> |
edk2: Bring in Guid/Fdt.h
This one is from EmbeddedPkg/Include/Guid/Fdt.h, which is our first EmbeddedPkg addition. For the moment, I'm doing this as an ad-hoc basis, but in the next import may need
edk2: Bring in Guid/Fdt.h
This one is from EmbeddedPkg/Include/Guid/Fdt.h, which is our first EmbeddedPkg addition. For the moment, I'm doing this as an ad-hoc basis, but in the next import may need to reconsider the strategy.
Sponsored by: Netflix
show more ...
|
| 473786a1 | 16-Nov-2025 |
Warner Losh <imp@FreeBSD.org> |
edk2: Tweak the tests for UEFI Specification Data Type requirements
On x86 these trigger for 32-bit builds. We only ever (will) do that for the 32-bit loader that starts a 64 bit kernel for ia32. Fo
edk2: Tweak the tests for UEFI Specification Data Type requirements
On x86 these trigger for 32-bit builds. We only ever (will) do that for the 32-bit loader that starts a 64 bit kernel for ia32. For the moment, take the training wheels off, though most likely some compile flags need to be used to change the i386 ABI to force *int64_t alignment to 64 bits or some other horror as yet ill-concieved. Despite this assertion, the ia32 to boot 64-bit kernels loaders seem to work.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D53653
show more ...
|
| 99984e4b | 23-Apr-2025 |
Warner Losh <imp@FreeBSD.org> |
edk2: #ifdef out STATIC_ASSERTS when !_STANDALONE
All FreeBSD ABIs do not conform to the EDK2 preconditions (except boot loader). These asserts test those things. Since the code from EDK2 that we us
edk2: #ifdef out STATIC_ASSERTS when !_STANDALONE
All FreeBSD ABIs do not conform to the EDK2 preconditions (except boot loader). These asserts test those things. Since the code from EDK2 that we use does not depend on L" and L' details, commenting them out is fine.
Note: This was not in the update since I had to redo it too many times due to lost races and it was a tricky update.
Sponsored by: Netflix
show more ...
|