freebsd-nq/stand/uboot
Mitchell Horne 8859960436 loader: always install help files
Address two issues with current help file logic:

The existing condition prevents the common help file from being
installed when there are no additional help files defined. This results
in no loader.help on EFI platforms, for example.

Second, due to the fact that we build and install multiple loader types,
each successive install will clobber the previous loader.help. The
result is that we could lose type-specific commands, or possibly list
them in loaders that do not have such commands.

Instead, give each loader type a uniquely named help file. The EFI
loader will look for /boot/loader.help.efi, userboot will look for
/boot/loader.help.userboot, etc. The interpreter variant has no effect
on which help file is loaded.

This leaves the old /boot/loader.help unused.

Some credit for the final approach goes to Mathieu <sigsys@gmail.com>
for their version of the fix in https://reviews.freebsd.org/D22951.

PR:		267134
Reported by:	Daniel O'Connor <darius@dons.net.au>
Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D28591
2023-02-03 16:35:06 -04:00
..
arch stand: update prototypes for md_load and md_load64 2022-12-05 16:59:58 -07:00
api_public.h stand/uboot: reorg 2021-12-14 21:09:53 -07:00
copy.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
devicename.c stand/uboot: Explain why we test for NULL here 2023-01-13 14:22:38 -07:00
elf_freebsd.c stand: update prototypes for md_load and md_load64 2022-12-05 16:59:58 -07:00
glue.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
glue.h stand/uboot: reorg 2021-12-14 21:09:53 -07:00
help.uboot stand/uboot: reorg 2021-12-14 21:09:53 -07:00
libuboot.h stand: uboot_fmtdev can be reduced to devformat 2022-08-11 10:27:17 -06:00
main.c stand: parsedev API change: devspec now points to start of full device name 2022-11-30 15:30:33 -07:00
Makefile loader: always install help files 2023-02-03 16:35:06 -04:00
net.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
reboot.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
time.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
uboot_console.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
uboot_disk.c stand: For all disk drivers, connect dv_parsedev to disk_parsedev 2022-11-30 15:30:32 -07:00
uboot_fdt.c Remove "All Rights Reserved" from Foundation copyrights 2022-06-30 10:49:09 -04:00
uboot_module.c stand/uboot: reorg 2021-12-14 21:09:53 -07:00
version stand/uboot: reorg 2021-12-14 21:09:53 -07:00