git: 3166167784b9 - releng/14.2 - modules: gpioaei only on ACPI-supporting archs

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Sun, 03 Nov 2024 16:16:57 UTC
The branch releng/14.2 has been updated by cperciva:

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

commit 3166167784b93f6faaf4fe07f3154c76a6321d47
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2024-10-31 22:45:03 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-11-03 16:15:45 +0000

    modules: gpioaei only on ACPI-supporting archs
    
    Approved by:    re (kib)
    Fixes:  9709bda03cd0 ("GPIO: Add ACPI _AEI support")
    Pointy-hat to:  cperciva
    Sponsored by:   Amazon
    
    (cherry picked from commit 6540ac118473dde29cb02f786c79c64f73834ca1)
    (cherry picked from commit 5a53843aef490bda32397e80b3fb600e802b461c)
---
 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>