aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/acpi
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2004-11-14 20:53:17 +0000
committerScott Long <scottl@FreeBSD.org>2004-11-14 20:53:17 +0000
commit428b40b211134b7be2532dfc20ee4a497be4a208 (patch)
tree21dab95f5a14fc72aaebdbf9cadfd913450a8bfa /sys/modules/acpi
parentf38e4909dda3879880b9ada223a7d196185244d4 (diff)
downloadsrc-428b40b211134b7be2532dfc20ee4a497be4a208.tar.gz
src-428b40b211134b7be2532dfc20ee4a497be4a208.zip
Make it clear that the acpi modules can only be compiled on i386.
Notes
Notes: svn path=/head/; revision=137702
Diffstat (limited to 'sys/modules/acpi')
-rw-r--r--sys/modules/acpi/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/modules/acpi/Makefile b/sys/modules/acpi/Makefile
index 8d5b9aea0191..7ef374597d4d 100644
--- a/sys/modules/acpi/Makefile
+++ b/sys/modules/acpi/Makefile
@@ -1,5 +1,13 @@
# $FreeBSD$
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64"
+.error "ACPI can only be compiled into the kernel on the amd64 and ia64 platforms"
+.endif
+
+.if ${MACHINE_ARCH} != "i386"
+.error "The ACPI module is only for i386"
+.endif
+
SUBDIR= acpi acpi_asus acpi_panasonic acpi_snc acpi_toshiba acpi_video
.include <bsd.subdir.mk>