git: 5522519731b7 - main - modules: enable allwinner kmods on riscv
Date: Mon, 20 Oct 2025 23:42:17 UTC
The branch main has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=5522519731b74e7b56c710ec5ea4d34065f3ed32
commit 5522519731b74e7b56c710ec5ea4d34065f3ed32
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2024-09-18 17:19:16 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2025-10-20 23:37:13 +0000
modules: enable allwinner kmods on riscv
While here, standardize the place they are enabled in the Makefile. For
armv7 the module subdirectory was added explicitly in the config file,
but this is not idiomatic.
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
---
sys/arm/conf/GENERIC | 1 -
sys/arm/conf/NOTES | 1 -
sys/modules/Makefile | 2 +-
3 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/sys/arm/conf/GENERIC b/sys/arm/conf/GENERIC
index 7394f3842d43..9607b16756ea 100644
--- a/sys/arm/conf/GENERIC
+++ b/sys/arm/conf/GENERIC
@@ -272,5 +272,4 @@ makeoptions MODULES_EXTRA+="dtb/rpi"
makeoptions MODULES_EXTRA+="dtb/zynq"
# SOC-specific modules
-makeoptions MODULES_EXTRA+="allwinner"
makeoptions MODULES_EXTRA+="imx"
diff --git a/sys/arm/conf/NOTES b/sys/arm/conf/NOTES
index 920d721dc3ba..0a5d34c3849a 100644
--- a/sys/arm/conf/NOTES
+++ b/sys/arm/conf/NOTES
@@ -94,7 +94,6 @@ nodevice bnxt
# Build SOC-specific modules...
-makeoptions MODULES_EXTRA+="allwinner"
makeoptions MODULES_EXTRA+="imx"
# Build dtb files...
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 63a0b3260e6d..9ec7c33465f3 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -680,6 +680,7 @@ _irdma= irdma
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
${MACHINE_CPUARCH} == "riscv"
.if !empty(OPT_FDT)
+_allwinner= allwinner
_if_cgem= if_cgem
.endif
.endif
@@ -713,7 +714,6 @@ _hyperv= hyperv
_vf_i2c= vf_i2c
.if !empty(OPT_FDT)
-_allwinner= allwinner
_dwwdt= dwwdt
_enetc= enetc
_felix= felix