git: 65fdabc9b93f - main - Mk/bsd.port.mk: fix cross compilation of kmods

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Wed, 07 Oct 2026 12:34:39 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=65fdabc9b93f0fef6cffe5eaca30d646286e0edb

commit 65fdabc9b93f0fef6cffe5eaca30d646286e0edb
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2026-10-07 12:31:54 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2026-10-07 12:34:31 +0000

    Mk/bsd.port.mk: fix cross compilation of kmods
    
    For cross compilation of kmods (the kmod repository) we need 2
    information: MACHINE and MACHINE_ARCH.
---
 Mk/bsd.port.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 2b772f0fffab..aad1b4c909d1 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1591,6 +1591,7 @@ PKG_NOTE_flavor=	${FLAVOR}
 # using git from finding the ports tree's git repository.
 WRK_ENV+=		HOME=${WRKDIR} \
 				LANG=C.UTF-8 \
+				MACHINE=${MACHINE} \
 				MACHINE_ARCH=${MACHINE_ARCH} \
 				PWD="$${PWD}" \
 				GIT_CEILING_DIRECTORIES=${WRKDIR} \