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
This commit is contained in:
Warner Losh 2022-11-04 16:49:10 -06:00
parent 58d84ef870
commit 75217c2b47

View file

@ -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