git: 6540ac118473 - main - modules: gpioaei only on ACPI-supporting archs

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Thu, 31 Oct 2024 22:47:06 UTC
The branch main has been updated by cperciva:

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

commit 6540ac118473dde29cb02f786c79c64f73834ca1
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2024-10-31 22:45:03 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-10-31 22:45:03 +0000

    modules: gpioaei only on ACPI-supporting archs
    
    Fixes:  9709bda03cd0 ("GPIO: Add ACPI _AEI support")
    Pointy-hat to:  cperciva
    Sponsored by:   Amazon
---
 sys/modules/gpio/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sys/modules/gpio/Makefile b/sys/modules/gpio/Makefile
index 1d7f69f1836d..66090b1393bf 100644
--- a/sys/modules/gpio/Makefile
+++ b/sys/modules/gpio/Makefile
@@ -24,10 +24,14 @@
 # SUCH DAMAGE.
 #
 
-SUBDIR = gpioaei gpiobus gpioiic gpioled gpiospi gpioths
+SUBDIR = gpiobus gpioiic gpioled gpiospi gpioths
 
 .if !empty(OPT_FDT)
 SUBDIR += gpiokeys gpiopps
 .endif
 
+.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
+SUBDIR += gpioaei
+.endif
+
 .include <bsd.subdir.mk>