Date: Thu, 13 May 2021 18:25:34 GMT From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 0b426a1c2cef - main - modules: Only build sdhci_fdt for arm and arm64 Message-ID: <202105131825.14DIPYUw061157@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=0b426a1c2cef14ded10ded6ec737d5c116182996 commit 0b426a1c2cef14ded10ded6ec737d5c116182996 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2021-05-13 18:23:59 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2021-05-13 18:23:59 +0000 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") --- sys/modules/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 6a5097e9ded0..fb2481140345 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105131825.14DIPYUw061157>