git: 75217c2b4700 - main - bnxt: Only build on 64-bit platforms
Date: Fri, 04 Nov 2022 22:55:59 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=75217c2b4700a1954971b1ec3722c39dd934e287
commit 75217c2b4700a1954971b1ec3722c39dd934e287
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-11-04 22:49:10 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-11-04 22:49:10 +0000
bnxt: Only build on 64-bit platforms
The driver uses bus_space_read_8 and friends, which do not exist on
32-bit i386 and break the build.
Sponsored by: Netflix
---
sys/modules/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 3a009f071cab..091fa7543164 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -67,7 +67,7 @@ SUBDIR= \
${_bxe} \
${_bios} \
${_blake2} \
- bnxt \
+ ${_bnxt} \
bridgestp \
bwi \
bwn \
@@ -424,6 +424,12 @@ SUBDIR+= dtrace
SUBDIR+= opensolaris
.endif
+# Requires bus_space_read_8
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "aarch64" || \
+ ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc64le"
+_bnxt= bnxt
+.endif
+
.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
.if exists(${SRCTOP}/sys/opencrypto)
_crypto= crypto