ofwdump: install dependent on MK_FDT

The utility depends on the presence of the openfirm(4) pseudo-device,
which is gated by the FDT kernel option. The MK_FDT knob is correctly
set to "yes" for FDT/OFW-enabled platforms (powerpc* included); use it
to install the utility and eliminate the arch-specific Makefile logic.

No functional change intended.

Reviewed by:	emaste, pkubaj
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D41977
This commit is contained in:
Mitchell Horne 2023-10-02 10:40:18 -03:00
parent d94d07d581
commit 773606fcdf
6 changed files with 2 additions and 6 deletions

View File

@ -2016,6 +2016,7 @@ OLD_DIRS+=usr/share/examples/ypldap
.endif
.if ${MK_FDT} == no
OLD_FILES+=usr/sbin/ofwdump
OLD_FILES+=usr/share/man/man8/ofwdump.8.gz
.endif

View File

@ -133,6 +133,7 @@ SUBDIR.${MK_EFI}+= efivar efidp efibootmgr efitable efiwake
.if ${MK_OPENSSL} != "no"
SUBDIR.${MK_EFI}+= uefisign
.endif
SUBDIR.${MK_FDT}+= ofwdump
SUBDIR.${MK_FLOPPY}+= fdcontrol
SUBDIR.${MK_FLOPPY}+= fdformat
SUBDIR.${MK_FLOPPY}+= fdread

View File

@ -2,4 +2,3 @@
.if ${MK_ACPI} != "no"
SUBDIR+= acpi
.endif
SUBDIR+= ofwdump

View File

@ -1,2 +0,0 @@
SUBDIR+= ofwdump

View File

@ -2,4 +2,3 @@
.if ${MACHINE_ARCH} != "powerpcspe"
SUBDIR+= nvram
.endif
SUBDIR+= ofwdump

View File

@ -1,2 +0,0 @@
SUBDIR+= ofwdump