From 238eb01b5c640956a6a7bbeaecd4a3f73aa03b92 Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Fri, 1 Mar 2019 02:31:43 +0000 Subject: [PATCH] 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. --- sys/modules/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 61d031d8387..6c63dcba1c8 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -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" && \