From nobody Fri Nov 04 22:55:59 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N3wvz6KX5z4h0SX; Fri, 4 Nov 2022 22:55:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N3wvz4lNFz410H; Fri, 4 Nov 2022 22:55:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667602559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lVjaRYX7eXj87KlsBQlpwTvxWGBuofN1xMmbT2n5klw=; b=h1z1BHsDHBlW1nDeka+FdG6gBl3d+K5DdVfVlKhvFrh2p8PJBwk9lH+NlU4HrpN8rhrCTT H2E2+8nx2p1P8+pCWTqESElG7gBBVdfbstPvf3tskJnECed0crtcF07VrIKMCwlsOi+sBA OiyQg3c5xh1A+RCbwxIdqYz6hekM0Q7fcTPUf01m53HT1v3Y2Vq/r/nvhldGefKGfFORoa GUOUsBIpDSPyXHdkz9tmO83z3G/31Pp2MJn8ayNyyMdcnaLK3hFUuVlkit7E3e+5qHBtrX OZQQqnfU09u22QjC57+syzRbEHrtHGt4Wi8WyoQozckjjZD5qAZiIqvT4TBTQQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N3wvz2v9TzJwQ; Fri, 4 Nov 2022 22:55:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A4MtxjZ032844; Fri, 4 Nov 2022 22:55:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A4Mtxr8032843; Fri, 4 Nov 2022 22:55:59 GMT (envelope-from git) Date: Fri, 4 Nov 2022 22:55:59 GMT Message-Id: <202211042255.2A4Mtxr8032843@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 75217c2b4700 - main - bnxt: Only build on 64-bit platforms List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 75217c2b4700a1954971b1ec3722c39dd934e287 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667602559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lVjaRYX7eXj87KlsBQlpwTvxWGBuofN1xMmbT2n5klw=; b=fpBlRjndq+iNNhArGKGHBKvNy4om724Yx5DO9HZArSggJxIxwAvGWhr+t/9ByfOJfs7B/4 rCcESHTyhgtrWf/J7PeQLOtVHY8j3igA1pgAqfh5vzwkXYGpASH3/n/QBCW7ZykWgqZc7E IyJc+5XsN6vFo6uR3aSc2P+nKiko6NIf6xNTYXPDUbfTr1EMeGn5Hw3nKS4pUhc40Bhnyx CtzLW21AcLnh/7AZCdA/h/vcYT9I3qq4BIIItw6jYPE/iKMgqMTqiC0zih6FQe6Uk+UcRt 4jT64SIPZufwdvXUfWX3F7MUpciIjGUmO9CKHDURWuDQusJheGZfK5E6cfnvZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667602559; a=rsa-sha256; cv=none; b=QSA0tJJeAu/COlqZAGYAqDiLnnkvMkagZ91AkAnsv+p5JyX0K2sfR80UFEoIGDfIQWw5oA 7T0WVkhm6MlPoTPgLKF2FG95/5vb1QDDT5X2G+IHdxHl/mU/Ogra/DD71GfaGsz9V5mDU+ oSPif7fvngUgZbI8L+risBDjV3OvwCbFLNeO/7HxRmVwhwHDfW72gG9TFzDs4GP4D25asS SWOoOkFT5qLUcXjkWCvGwKmppaPlpB33AlgbhetWyo1zArlYjsmOBNlwThLoGxJ8/o4aLa QPCWa3ZKxZJ6ZK0SUEjgWErpYEJ13DwQ6kS88sN8TUWQianJivm/Nqx6S3viHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=75217c2b4700a1954971b1ec3722c39dd934e287 commit 75217c2b4700a1954971b1ec3722c39dd934e287 Author: Warner Losh AuthorDate: 2022-11-04 22:49:10 +0000 Commit: Warner Losh 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