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:	9e08f82058 ("modules: Add sdhci_fdt module")
This commit is contained in:
Emmanuel Vadot 2021-05-13 20:23:59 +02:00
parent 2c9764f36b
commit 0b426a1c2c

View File

@ -491,7 +491,6 @@ SUBDIR+= iscsi_initiator
.if !empty(OPT_FDT)
SUBDIR+= fdt
_sdhci_fdt= sdhci_fdt
.endif
# Linuxulator
@ -618,6 +617,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