Make acpi(4) compilable into an x86_64 kernel.
authorSascha Wildner <saw@online.de>
Tue, 28 Sep 2010 19:43:43 +0000 (21:43 +0200)
committerSascha Wildner <saw@online.de>
Tue, 28 Sep 2010 19:43:43 +0000 (21:43 +0200)
Note that this doesn't mean that we recommend building ACPI into the
kernel in any way. But it will still be needed once we get to having
some kind of LINT config for x86_64.

Tested-by: Dheeraj Reddy <dheerajr@gmail.com>
sys/platform/pc64/conf/files

index 2247ca6..3d4c6ad 100644 (file)
@@ -65,6 +65,26 @@ crypto/des/des_enc.c                 optional        crypto
 crypto/des/des_ecb.c                   optional        crypto
 crypto/des/des_setkey.c                        optional        crypto
 
+${OSACPI_MD_DIR}/OsdEnvironment.c      optional        acpi
+${OSACPI_MD_DIR}/acpi_machdep.c                optional        acpi
+${OSACPI_MD_DIR}/acpi_pstate_machdep.c optional        acpi
+${OSACPI_MD_DIR}/acpi_wakeup.c         optional        acpi
+acpi.h                                 optional        acpi            \
+       dependency      "$S/${ACPICA_DIR}/include/acpi.h"               \
+       compile-with    "cp $S/${ACPICA_DIR}/include/acpi.h ${.OBJDIR}/"        \
+       no-obj no-implicit-rule before-depend                           \
+       clean           "acpi.h"
+platform/acenv.h                       optional        acpi            \
+       dependency      "$S/${ACPICA_DIR}/include/platform/acenv.h"     \
+       compile-with    "mkdir -p ${.OBJDIR}/platform; cat ${.ALLSRC} | sed -e 's/__FreeBSD__/__DragonFly__/' -e 's/acfreebsd.h/acdragonfly.h/' > ${.TARGET}" \
+       no-obj no-implicit-rule before-depend                           \
+       clean           "acenv.h"
+acpi_wakecode.h                                optional        acpi            \
+       dependency      "$S/${OSACPI_MD_DIR}/acpi_wakecode.S"           \
+       compile-with    "${MAKE} -f $S/${OSACPI_MD_DIR}/Makefile MAKESRCPATH=$S/${OSACPI_MD_DIR}" \
+       no-obj no-implicit-rule before-depend                           \
+       clean           "acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin"
+#
 dev/video/fb/fb.c                      optional        vga
 dev/video/fb/splash.c                  optional        splash
 dev/video/fb/vga.c                     optional        vga