diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-11-04 22:49:10 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-11-04 22:49:10 +0000 |
commit | 75217c2b4700a1954971b1ec3722c39dd934e287 (patch) | |
tree | 00a1198fb5a7d4c32567bd4c248ef746a427d4ee | |
parent | 58d84ef87094691bf1ad9608964ec85f120cd34a (diff) |
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
-rw-r--r-- | sys/modules/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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 |