Remove pca and speaker device remains (both deleted).
[dragonfly.git] / sys / conf / acpi.mk
1 ACPICA_DIR?=            contrib/dev/acpica-unix
2 OSACPI_MI_DIR?=         dev/acpica
3 OSACPI_MD_DIR?=         platform/${MACHINE_PLATFORM}/acpica
4
5 .if !defined(SYSDIR) && defined(S)
6 SYSDIR= $S
7 .endif
8
9 ACPICA_KERN_PATHS = \
10         ${SYSDIR}/${ACPICA_DIR}/dispatcher              \
11         ${SYSDIR}/${ACPICA_DIR}/executer                \
12         ${SYSDIR}/${ACPICA_DIR}/parser                  \
13         ${SYSDIR}/${ACPICA_DIR}/events                  \
14         ${SYSDIR}/${ACPICA_DIR}/hardware                \
15         ${SYSDIR}/${ACPICA_DIR}/namespace               \
16         ${SYSDIR}/${ACPICA_DIR}/resources               \
17         ${SYSDIR}/${ACPICA_DIR}/tables                  \
18         ${SYSDIR}/${ACPICA_DIR}/utilities               \
19         ${SYSDIR}/${ACPICA_DIR}/debugger                \
20         ${SYSDIR}/${ACPICA_DIR}/disassembler
21
22 ACPICA_UTIL_PATHS = \
23         ${ACPICA_KERN_PATHS}                            \
24         ${SYSDIR}/${ACPICA_DIR}                         \
25         ${SYSDIR}/${ACPICA_DIR}/compiler                \
26         ${SYSDIR}/${ACPICA_DIR}/common
27
28 ${.OBJDIR}/acpi.h: ${SYSDIR}/${ACPICA_DIR}/include/acpi.h
29         cp ${.ALLSRC} ${.TARGET}
30
31 ${.OBJDIR}/platform/acenv.h: ${SYSDIR}/${ACPICA_DIR}/include/platform/acenv.h
32         mkdir -p ${.OBJDIR}/platform
33         sed -e 's/__FreeBSD__/__DragonFly__/' \
34             -e 's/acfreebsd.h/acdragonfly.h/' ${.ALLSRC} > ${.TARGET}.new
35         mv -f ${.TARGET}.new ${.TARGET}