aboutsummaryrefslogtreecommitdiff
path: root/lib/libefivar/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Create a function to translate UEFI paths to unix pathsWarner Losh2017-12-021-0/+1
| | | | | | | | | | | | | | | | | | | | efivar_device_path_to_unix_path translates from UEFI to Unix efivar_unix_path_to_device_path translates from Unix to UEFI At present, only HD() device types are supported (both GPT and MBR). CdRom and floppy devices aren't supported. ZFS isn't supported because there's no way in the UEFI standard to specify a ZFS datastore. Network devices aren't supported either. Three forms of Unix path are accepted: /path/to/file (for a mounted filesystem), //path/to/file (uses the EFI partition on the same disk as /), and dev:/path/to/file (for unmounted filesystem). Two forms are produced (the first and last). Sponsored by: Netflix Notes: svn path=/head/; revision=326458
* Move sys/boot to stand. Fix all references to new locationWarner Losh2017-11-141-1/+1
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=325834
* libefivar: -fno-strict-aliasingRyan Libby2017-09-041-1/+1
| | | | | | | | | | | | | | Avoid dealing with some code that uses type-punned pointers. See D12210 and D12211 for more background. Reviewed by: imp Approved by: markj (mentor) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D12219 Notes: svn path=/head/; revision=323155
* Bring in EDK2 routines for printing and parsing device paths.Warner Losh2017-03-091-2/+10
| | | | | | | | | | | | | | | | | | | This commit implements the (mostly?) Linux compatible efidp_format_device_path and efidp_parse_device_path APIs. These are the only APIs exposed through this library. However, they are built on code from Tianocore's EDK2 MdePkg. They are brought in as new files here for reasons described in FreeBSD-update. Symbol versioning will be introduced to control what's exported from the EDK2 code. Some structural changes may be necessary when we move to sharing with sys/boot/efi. Sponsored by: Netflix Notes: svn path=/head/; revision=314926
* Share UCS2/UTF8 routines between boot loader and userland.Warner Losh2017-03-091-1/+7
| | | | | | | | | | Move the UCS2 to UTF8 routines over into sys/boot/efi and have libefivar grab them from there. Sponsored by: Netflix Notes: svn path=/head/; revision=314925
* Create libefivar library. This library aims to provideWarner Losh2016-10-111-0/+53
the same API as the GPL'd version of this library. It implements the common Linux API for programatically manipulating UEFI environment varibales using the UEFI Runtime Services the kernel provides. It replaces the old efi library since it is programmed to a different interface, but retails the CHAR16 to UTF-8 and vice versa conversion routines. The new name is to match Linux program's expectations. Differential Revision: https://reviews.freebsd.org/D8128 Reviewed by: kib@, wblock@, Ganael Laplanche Notes: svn path=/head/; revision=307071