2000-10-31 04:09:35 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2001-05-29 20:05:59 +00:00
|
|
|
.PATH: ${.CURDIR}/../../contrib/dev/acpica \
|
2001-08-30 00:53:13 +00:00
|
|
|
${.CURDIR}/../../pci \
|
|
|
|
${.CURDIR}/../../dev/acpica \
|
|
|
|
${.CURDIR}/../../dev/acpica/Osd \
|
2001-09-06 12:53:53 +00:00
|
|
|
${.CURDIR}/../../${MACHINE_ARCH}/acpica
|
2000-10-31 04:09:35 +00:00
|
|
|
|
2001-08-30 00:53:13 +00:00
|
|
|
KMOD= acpi
|
2001-05-29 20:05:59 +00:00
|
|
|
|
|
|
|
# ACPI CA sources
|
2001-08-30 00:53:13 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica
|
2001-05-29 20:05:59 +00:00
|
|
|
SRCS+= dsfield.c dsmethod.c dsmthdat.c dsobject.c dsopcode.c dsutils.c
|
|
|
|
SRCS+= dswexec.c dswload.c dswscope.c dswstate.c evevent.c evmisc.c evregion.c
|
|
|
|
SRCS+= evrgnini.c evsci.c evxface.c evxfevnt.c evxfregn.c exconfig.c exconvrt.c
|
2001-10-31 02:35:43 +00:00
|
|
|
SRCS+= excreate.c exdump.c exfield.c exfldio.c exmisc.c exmutex.c exnames.c
|
|
|
|
SRCS+= exoparg1.c exoparg2.c exoparg3.c exoparg6.c exprep.c exregion.c
|
|
|
|
SRCS+= exresnte.c exresolv.c exresop.c
|
2001-10-04 23:19:17 +00:00
|
|
|
SRCS+= exstore.c exstoren.c exstorob.c exsystem.c exutils.c hwacpi.c
|
2001-05-29 20:05:59 +00:00
|
|
|
SRCS+= hwgpe.c hwregs.c hwsleep.c hwtimer.c nsaccess.c nsalloc.c nsdump.c
|
|
|
|
SRCS+= nseval.c nsinit.c nsload.c nsnames.c nsobject.c nssearch.c nsutils.c
|
|
|
|
SRCS+= nswalk.c nsxfname.c nsxfobj.c psargs.c psfind.c psopcode.c psparse.c
|
|
|
|
SRCS+= psscope.c pstree.c psutils.c pswalk.c psxface.c rsaddr.c rscalc.c
|
|
|
|
SRCS+= rscreate.c rsdump.c rsio.c rsirq.c rslist.c rsmemory.c rsmisc.c
|
|
|
|
SRCS+= rsutils.c rsxface.c tbconvrt.c tbget.c tbinstal.c tbutils.c tbxface.c
|
|
|
|
SRCS+= tbxfroot.c utalloc.c utclib.c utcopy.c utdebug.c utdelete.c uteval.c
|
2001-10-04 23:19:17 +00:00
|
|
|
SRCS+= utglobal.c utinit.c utmath.c utmisc.c utobject.c utxface.c
|
2001-05-29 20:05:59 +00:00
|
|
|
|
|
|
|
# OSD layer
|
2001-07-07 23:36:13 +00:00
|
|
|
SRCS+= acpi.c acpi_acad.c acpi_battery.c acpi_button.c acpi_cmbat.c acpi_cpu.c
|
2002-03-04 18:46:13 +00:00
|
|
|
SRCS+= acpi_ec.c acpi_lid.c acpi_pcib.c
|
2001-07-07 23:36:13 +00:00
|
|
|
SRCS+= acpi_powerres.c acpi_resource.c acpi_thermal.c acpi_timer.c
|
2001-11-06 15:00:30 +00:00
|
|
|
SRCS+= acpica_support.c
|
2001-07-07 23:36:13 +00:00
|
|
|
SRCS+= OsdDebug.c
|
2001-01-06 14:00:42 +00:00
|
|
|
SRCS+= OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c
|
|
|
|
SRCS+= OsdStream.c OsdSynch.c OsdEnvironment.c
|
|
|
|
SRCS+= opt_acpi.h opt_ddb.h
|
|
|
|
SRCS+= device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h
|
2001-12-22 16:05:41 +00:00
|
|
|
.if ACPI_NO_SEMAPHORES
|
|
|
|
CFLAGS+=-DACPI_NO_SEMAPHORES
|
|
|
|
.endif
|
|
|
|
.if ACPI_MAX_THREADS
|
|
|
|
CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
|
|
|
|
.endif
|
2000-10-31 04:09:35 +00:00
|
|
|
|
2001-08-30 00:53:13 +00:00
|
|
|
# Debugging support
|
|
|
|
.if ACPI_DEBUG
|
|
|
|
CFLAGS+=-DACPI_DEBUG
|
|
|
|
SRCS+= dbcmds.c dbdisasm.c dbdisply.c dbexec.c dbfileio.c dbhistry.c
|
|
|
|
SRCS+= dbinput.c dbstats.c dbutils.c dbxface.c
|
2001-01-06 14:00:42 +00:00
|
|
|
opt_ddb.h: Makefile
|
2000-10-31 04:09:35 +00:00
|
|
|
echo '#define DDB 1' >opt_ddb.h
|
2001-08-30 00:53:13 +00:00
|
|
|
.else
|
|
|
|
opt_ddb.h: Makefile
|
|
|
|
echo '' >opt_ddb.h
|
|
|
|
.endif
|
|
|
|
|
2001-10-26 17:43:05 +00:00
|
|
|
# Machine-specific code such as sleep/wakeup
|
|
|
|
SRCS+= acpi_machdep.c acpi_wakecode.h acpi_wakeup.c
|
2001-08-30 00:53:13 +00:00
|
|
|
CLEANFILES+= acpi_wakecode.h acpi_wakecode.o acpi_wakecode.bin
|
2000-10-31 04:09:35 +00:00
|
|
|
|
2001-07-20 06:07:34 +00:00
|
|
|
acpi_wakecode.h: acpi_wakecode.S
|
2001-09-06 12:53:53 +00:00
|
|
|
${MAKE} -f ${.CURDIR}/../../${MACHINE_ARCH}/acpica/Makefile \
|
|
|
|
MAKESRCPATH=${.CURDIR}/../../${MACHINE_ARCH}/acpica
|
2001-07-20 06:07:34 +00:00
|
|
|
|
2000-10-31 04:09:35 +00:00
|
|
|
.include <bsd.kmod.mk>
|