aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2021-05-13 18:23:59 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2021-07-22 16:51:33 +0000
commit4292390bd62fe8286ed92b09ab7c1ae04323c36b (patch)
tree3c4e4da57a4fe01bfc2d332a7e8783efb1505b3b
parentf13f43e2ba562cef259ac81e9359325acc0020c5 (diff)
downloadsrc-4292390bd62fe8286ed92b09ab7c1ae04323c36b.tar.gz
src-4292390bd62fe8286ed92b09ab7c1ae04323c36b.zip
modules: Only build sdhci_fdt for arm and arm64
Other FDT platform (like powerpc64* or riscv64) don't have gpio built by default so just compile the module for those two arches. Fixes: 9e08f82058cb ("modules: Add sdhci_fdt module") (cherry picked from commit 0b426a1c2cef14ded10ded6ec737d5c116182996)
-rw-r--r--sys/modules/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 911aebe88269..f01354e5e315 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -493,7 +493,6 @@ SUBDIR+= iscsi_initiator
.if !empty(OPT_FDT)
SUBDIR+= fdt
-_sdhci_fdt= sdhci_fdt
.endif
# Linuxulator
@@ -620,6 +619,10 @@ _em= em
_rockchip= rockchip
.endif
+.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm"
+_sdhci_fdt= sdhci_fdt
+.endif
+
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
_agp= agp
_an= an