PC-BSD/trueos 5b19b78stand/efi Makefile, stand/efi/boot1 boot1.c proto.c

MFC r348658-r348659, r348674-r348675, r348678, r348760, r348766, r348768,
r348811-r348812, r348814, r349008

r348658:
Introduce efi_devpath_same_disk

This is like efi_devpath_match, but allows differing device media
paths. Those just specify the partition information.

r348659:
Use newly minted efi_devpath_same_disk() instead of
efi_devpath_match(). This fixes a regression in r347193.

r348674:
Don't shadow a global zfsmount variable.

r348675:
ufs_module.c can't currently be compiled with -Wcast-align, but the
code is safe enough. Turn off the warning for now until I can find the
right construct to silence it in the code.

r348678:
Eliminate unused uuid parameters from gptread and gptread_table.  We
only need it for the gptfind() function, where it's used.

r348760:
Use simple malloc/free instead of dropping down to the UEFI
BootServices AllocatePool/FreePool calls. They are simpler to use and
result in the same thing happening.

r348766:
Remove left-over status variables

r348768:
Rework the reporting of the priority.

Simplify the code a bit and rework how we report the results
of the probing.

r348811:
Break out the disk selection protocol from the rest of boot1.

Segregate the disk probing and selection protocol from the rest of the
boot loader.

r348812:
Create gptboot.efi

This is a primary boot loader that is intended to implement the
gptboot partition selection algorithm just like we did for BIOS
booting. While the preferred method for UEFI is to use the UEFI Boot
Manager protocol, there are situations where that can't be done: some
BIOS makers interfere with the protocol in unhelpful ways, there's a
new standard for a zero variable write from the client OS, and finally
for USB drives that might be mobile between systems with multiple
partitions there needs to be a media stable way to select.

r348814:
Add stuff to disable warning for %S

Add the customary warnings to disable format checking on armv7. Code
move to new files, and the unconditional setting of WARNS to 6
provoked it on tinerbox...

r349008:
Fix gcc build by removing redeclaration
DeltaFile
+279-0stand/efi/gptboot/proto.c
+23-215stand/efi/boot1/boot1.c
+223-0stand/efi/boot1/proto.c
+41-0stand/efi/gptboot/drv.h
+13-16stand/efi/boot1/zfs_module.c
+29-0stand/efi/boot1/proto.h
+26-2stand/efi/libefi/devpath.c
+17-0stand/efi/gptboot/Makefile
+6-7stand/efi/boot1/ufs_module.c
+5-7stand/libsa/gpt.c
+7-2stand/efi/boot1/Makefile
+3-1stand/efi/boot1/boot_module.h
+1-1stand/libsa/gpt.h
+1-1stand/i386/gptboot/gptboot.c
+1-1stand/efi/Makefile
+1-0stand/efi/include/efilib.h
+676-25316 files

UnifiedSplitRaw