Build fdt support modules on systems that use fdt data.

kern.opts.mk sets make var OPT_FDT to a non-empty value if platform.h
contains OPT_FDT.
This commit is contained in:
Ian Lepore 2019-03-01 02:31:43 +00:00
parent f476f0add8
commit 238eb01b5c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344681

View File

@ -474,6 +474,10 @@ SUBDIR+= iscsi
SUBDIR+= iscsi_initiator
.endif
.if !empty(OPT_FDT)
SUBDIR+= fdt
.endif
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
${MACHINE_CPUARCH} == "i386"
SUBDIR+= linprocfs
@ -538,7 +542,7 @@ SUBDIR+= zfs
.if (${MACHINE_CPUARCH} == "mips" && ${MACHINE_ARCH:Mmips64} == "")
_hwpmc_mips24k= hwpmc_mips24k
_hwpmc_mips74k= hwpmc_mips74k
_hwpmc_mips74k= hwpmc_mips74kwheel
.endif
.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \