git: b80af977f1b1 - main - mgb: Build module for all archs

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Tue, 13 Oct 2026 16:52:59 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=b80af977f1b1ab72cb80fe6802228cdae0547efe

commit b80af977f1b1ab72cb80fe6802228cdae0547efe
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-10-11 14:34:15 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-10-13 16:51:05 +0000

    mgb: Build module for all archs
    
    It is not x86-specific.
    
    This reverts commit e0a5aa37c1ef3a22e2dc8c311e0e32ea363f7ccf.
    This reverts commit 2d935a1e93af4d552db1f7218ef97e01f058c084.
    
    Reviewed by:    kbowling
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D60615
---
 share/man/man4/Makefile | 3 +--
 share/man/man4/mgb.4    | 2 +-
 sys/modules/Makefile    | 3 +--
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile
index 803ca8c0d216..f00a0400e7b0 100644
--- a/share/man/man4/Makefile
+++ b/share/man/man4/Makefile
@@ -797,7 +797,7 @@ MLINKS+=me.4 if_me.4
 MLINKS+=mem.4 kmem.4
 MLINKS+=mfi.4 mfi_linux.4 \
 	mfi.4 mfip.4
-MLINKS+=${_mgb.4} ${_if_mgb.4}
+MLINKS+=mgb.4 if_mgb.4
 MLINKS+=mlx5en.4 mce.4 \
 	mlx5en.4 if_mce.4
 MLINKS+=mos.4 if_mos.4
@@ -914,7 +914,6 @@ _i8254.4=	i8254.4
 _ichwd.4=	ichwd.4
 _if_bxe.4=	if_bxe.4
 _if_hn.4=	if_hn.4
-_if_mgb.4=	if_mgb.4
 _if_nfe.4=	if_nfe.4
 _if_urtw.4=	if_urtw.4
 _if_wpi.4=	if_wpi.4
diff --git a/share/man/man4/mgb.4 b/share/man/man4/mgb.4
index 4911ff3b348d..0d26951d1b1e 100644
--- a/share/man/man4/mgb.4
+++ b/share/man/man4/mgb.4
@@ -22,7 +22,7 @@
 .\" SUCH DAMAGE.
 .\"
 .Dd September 28, 2021
-.Dt MGB 4 amd64
+.Dt MGB 4
 .Os
 .Sh NAME
 .Nm mgb
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 5fad79c4aa98..8a6832441a29 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -257,7 +257,7 @@ SUBDIR=	\
 	${_mana} \
 	md \
 	mdio \
-	${_mgb} \
+	mgb \
 	mem \
 	mfi \
 	mii \
@@ -785,7 +785,6 @@ _ixv=		ixv
 _lio=		lio
 .endif
 _mana=		mana
-_mgb=		mgb
 _nctgpio=	nctgpio
 _ncthwm=	ncthwm
 _ntb=		ntb