acpi: Remove userland bits on non-ACPI platforms

ACPI is only supported on amd64, arm64 and i386.  Don't install the
power_profile rc script or devd configuration on other platforms.

This avoids creating a useless FreeBSD-acpi package on those platforms.

MFC after:	2 weeks
Reviewed by:	imp
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D56650
This commit is contained in:
Lexi Winter
2026-04-28 20:37:33 +01:00
parent cb0e3a5fba
commit c4b244af42
7 changed files with 10 additions and 41 deletions
+3
View File
@@ -88,9 +88,12 @@ ACCT+= utx
.endif
.endif
.if ${MACHINE} == "i386" || ${MACHINE} == "amd64" || \
${MACHINE} == "arm64"
CONFGROUPS.${MK_ACPI}+= ACPI
ACPIPACKAGE= acpi
ACPI= power_profile
.endif
.if ${MACHINE} == "i386"
CONFGROUPS.${MK_APM}+= APM