From 4b4f25fcb11f7218c227b1739da241a430536d91 Mon Sep 17 00:00:00 2001 From: scottl Date: Sun, 14 Nov 2004 20:53:17 +0000 Subject: [PATCH] Make it clear that the acpi modules can only be compiled on i386. --- sys/modules/acpi/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) 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