]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: share bootinfo.c between EFI and KBOOT
authorWarner Losh <imp@FreeBSD.org>
Fri, 3 Feb 2023 15:39:55 +0000 (08:39 -0700)
committerWarner Losh <imp@FreeBSD.org>
Fri, 3 Feb 2023 15:41:40 +0000 (08:41 -0700)
commit0928550c3e17d5a1a0a6a7f8ba7fce6598915b6f
tree872cbe0db2dc79b070dc12e727a63f43c564b727
parente49773296c6ce3a493260456128e090809249fd4
stand: share bootinfo.c between EFI and KBOOT

Connect efi's bootinfo.c to the kboot build, and adjust to use
the kboot specific routines.

The getrootmount() call is independent of EFI. Remove ifdefs so it's
called for kboot too.

The differences between the kboot and efi bootinfo.c files are now tiny.
This could use some more refactoring, but this is a working checkpoint.

Sponsored by: Netflix
Reviewed by: tsoome
Differential Revision: https://reviews.freebsd.org/D38350
stand/efi/loader/bootinfo.c
stand/kboot/Makefile
stand/kboot/bootinfo.c [deleted file]