git: 5a53843aef49 - stable/14 - modules: gpioaei only on ACPI-supporting archs

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Sun, 03 Nov 2024 16:02:30 UTC
The branch stable/14 has been updated by cperciva:

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

commit 5a53843aef490bda32397e80b3fb600e802b461c
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:01:28 +0000

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