| 8494a3de | 13-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
libefivar: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the MdePkg package
Note that the link above no longer exists
libefivar: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the MdePkg package
Note that the link above no longer exists. The commit message was kept verbatim. An original copy of the bug report can be found at: https://web.archive.org/web/20241008121707/https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Obtained from: https://github.com/tianocore/edk2/commit/2f88bd3a1296c522317f1c21377876de63de5be7
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894
show more ...
|
| ca6fef2d | 13-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
libefivar: Change OPTIONAL keyword usage style
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760
Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params.
Note that the link above
libefivar: Change OPTIONAL keyword usage style
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760
Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params.
Note that the link above no longer exists. The commit message was kept verbatim. An archive of the bug report can be found at: https://web.archive.org/web/20240714185609/https://bugzilla.tianocore.org/show_bug.cgi?id=3760
Obtained from: https://github.com/tianocore/edk2/commit/d0e2f8232a26453fc0191629ed44ff2a46ea073e
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894
show more ...
|
| 6fa0057f | 13-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
libefivar: Support UefiDevicePathLib under StandaloneMm
This change added an instance of UefiDevicePathLib for StandaloneMm. It abstracts DevicePathFromHandle function into different files for Stand
libefivar: Support UefiDevicePathLib under StandaloneMm
This change added an instance of UefiDevicePathLib for StandaloneMm. It abstracts DevicePathFromHandle function into different files for Standalone MM and other instances to avoid linking gBS into MM_STANDALONE drivers.
No functional change intended, as this function and its invocation are ifdefd out.
Obtained from: https://github.com/tianocore/edk2/commit/14a746bb6a92d59669c67a970479558734cf2383
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894
show more ...
|
| 136ff605 | 13-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
libefivar: Replace BSD License with BSD+Patent License
https://bugzilla.tianocore.org/show_bug.cgi?id=1373
Replace BSD 2-Clause License with BSD+Patent License. This change is based on the followi
libefivar: Replace BSD License with BSD+Patent License
https://bugzilla.tianocore.org/show_bug.cgi?id=1373
Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails:
https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html
RFCs with detailed process for the license change:
V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html
Note that the link above no longer exists. The commit message was kept verbatim. An archive of the bug report can be found at: https://web.archive.org/web/20240714192319/https://bugzilla.tianocore.org/show_bug.cgi?id=1373
Obtained from: https://github.com/tianocore/edk2/commit/9344f0921518309295da89c221d10cbead8531aa
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894
show more ...
|
| 5c2ae0a2 | 13-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
libefivar: Add sanity check for FilePath device path
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1497
Current implementation of IsDevicePathValid() is not enough for type of MEDIA_FILEPATH_
libefivar: Add sanity check for FilePath device path
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1497
Current implementation of IsDevicePathValid() is not enough for type of MEDIA_FILEPATH_DP, which has NULL-terminated string in the device path. This patch add a simple NULL character check at Length position.
Note that the link above no longer exists. The commit message was kept verbatim. An archived version of the bug report can be found at: https://web.archive.org/web/20240714191428/https://bugzilla.tianocore.org/show_bug.cgi?id=1497
Add the const keyword to avoid errors/warnings about dropping a const qualifier.
Obtained from: https://github.com/tianocore/edk2/commit/2f7a96d6ec13b292d6f31295f3195913921173e1
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894
show more ...
|
| fd606b62 | 13-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
libefivar: Add a checking step
Add a checking step in DevicePathUtilities.c to verify DevicePath. https://bugzilla.tianocore.org/show_bug.cgi?id=1372
v2: Remove ASSERT() and the redundant checking
libefivar: Add a checking step
Add a checking step in DevicePathUtilities.c to verify DevicePath. https://bugzilla.tianocore.org/show_bug.cgi?id=1372
v2: Remove ASSERT() and the redundant checking step. Update related description.
Note that the link above no longer exists. The commit message was kept verbatim. An archived version of the bug report can be found at: https://web.archive.org/web/20240714192353/bugzilla.tianocore.org/show_bug.cgi?id=1372
Obtained from: https://github.com/tianocore/edk2/commit/fd02394228ee1dc2378cccfde6098c461f96dd42
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894
show more ...
|
| 9677ae78 | 13-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
libefivar: MdePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF
No functional change.
Obtained from: https://github.com
libefivar: MdePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF
No functional change.
Obtained from: https://github.com/tianocore/edk2/commit/9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894
show more ...
|
| 5b7b60af | 13-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
libefivar: Add and comment out unused functions
This commit introduces gratuitous white space and unused functions. This functionality is guarded/commented out. This change is necessary to reduce t
libefivar: Add and comment out unused functions
This commit introduces gratuitous white space and unused functions. This functionality is guarded/commented out. This change is necessary to reduce the differences with the reference file in subsequent commits.
No functional change intended.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894
show more ...
|
| ef191142 | 13-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
libefivar: Move functions to match reference file
Move a few functions to match their locations in the reference file. No functional change intended.
Reviewed by: imp Pull Request: https://github.c
libefivar: Move functions to match reference file
Move a few functions to match their locations in the reference file. No functional change intended.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894
show more ...
|
| b38f48d3 | 13-Nov-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
libefivar: Standardize #ifndef __FreeBSD__
Standardize preprocessor directives that comment out unused functions (essentially #if 0).
No functional change intended.
Reviewed by: imp Pull Request:
libefivar: Standardize #ifndef __FreeBSD__
Standardize preprocessor directives that comment out unused functions (essentially #if 0).
No functional change intended.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894
show more ...
|
| 67c7e943 | 16-Nov-2025 |
Warner Losh <imp@FreeBSD.org> |
edk2: Move ProcessorBind.h to contrib/edk2
Have our own ProcessorBind.h. It just includes sys/efi-edk2.h, but undefines TRUE, FALSE and MAC. The first two are from acpica and are redefined to someth
edk2: Move ProcessorBind.h to contrib/edk2
Have our own ProcessorBind.h. It just includes sys/efi-edk2.h, but undefines TRUE, FALSE and MAC. The first two are from acpica and are redefined to something almost the same. MAC is a global option that, well, interferes with using EDK2, dangit. I suppose I should redefine it after, but I don't think you can save the value of a pre-processor variable.
This breaks a little with the tradition of having this in a seprate directory and using build magic. However, the build is already magical enough and having this here makes things less magical. Also, EDK2 puts this in a processor specific directory, so we won't have conflicts (they need it there since they run on more processors than we do: we can just include sys/efi-edk2.h which covers the smallar variance we have in processors).
Sponsored by: Netflix
show more ...
|
| 8d136fb0 | 01-May-2025 |
Warner Losh <imp@FreeBSD.org> |
efivar: Use struct guid_table instead of uuid_table
uuid_table was the linux name. When libefivar was started, I tried to make it compatible with Linux. However, that's no longer relevant: (a) littl
efivar: Use struct guid_table instead of uuid_table
uuid_table was the linux name. When libefivar was started, I tried to make it compatible with Linux. However, that's no longer relevant: (a) little to no Linux code was subsequently ported and (b) Linux compat has eroded. This erodes it a bit more to cope with the uuid_t -> efi_guid_t changes. This also moves a couple of functions around to reduce copying and updates consumers for the visible parts of this change.
Sponsored by: Netflix Reviewed by: tsoome, kib Differential Revision: https://reviews.freebsd.org/D50060
show more ...
|
| 20c5e4b3 | 01-May-2025 |
Warner Losh <imp@FreeBSD.org> |
efivar: Allow uuid_t and efi_guid_t to be different types.
While they are binarily the same, the API are different. To use EDK2 more effectively, we need to transition to using EDK@'s API rather tha
efivar: Allow uuid_t and efi_guid_t to be different types.
While they are binarily the same, the API are different. To use EDK2 more effectively, we need to transition to using EDK@'s API rather than the uuid_t API. This change makes the code neutral on the subject.
Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D50035
show more ...
|
| 5f2dd25a | 01-May-2025 |
Warner Losh <imp@FreeBSD.org> |
efivar: Test uuid against zero
Test the passed in GuID against a guid of all 0's. This removes another place that has to worry about the difference between uuit_t and EFI_GUID.
Sponsored by: Netfl
efivar: Test uuid against zero
Test the passed in GuID against a guid of all 0's. This removes another place that has to worry about the difference between uuit_t and EFI_GUID.
Sponsored by: Netflix Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D50034
show more ...
|
| 3eb80ef8 | 01-May-2025 |
Warner Losh <imp@FreeBSD.org> |
efivar: Use memcmp instead of uuid_ functions to compare
In these cases, memcmp is a perfectly fine substitute for the uuid functions. We don't need checking to make sure the uuids are good, we know
efivar: Use memcmp instead of uuid_ functions to compare
In these cases, memcmp is a perfectly fine substitute for the uuid functions. We don't need checking to make sure the uuids are good, we know the pointers are non-ULL, etc. memcmp will reduce the number of places we need to know these are actually UUIDs, or similar.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D50033
show more ...
|
| 39d58c81 | 20-Feb-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
libefivar: Add Display Only format for Hard Drive
Ref: UEFI Specification Version 2.1 (Errata D) (released October 2008)
Reviewed by: imp, emaste Approved by: emaste (mentor) Obtained from: https:/
libefivar: Add Display Only format for Hard Drive
Ref: UEFI Specification Version 2.1 (Errata D) (released October 2008)
Reviewed by: imp, emaste Approved by: emaste (mentor) Obtained from: https://github.com/tianocore/edk2/commit/9e6537469d4700d9d793ee21e9c2f2e7ddbb2176 Differential Revision: https://reviews.freebsd.org/D49060
show more ...
|