minix/drivers/acpi/Makefile

153 lines
2.1 KiB
Makefile
Raw Normal View History

# The ACPI driver is compilable only with a "gnu" type compiler
.if ${COMPILER_TYPE} != "gnu"
CC:=clang
COMPILER_TYPE:=gnu
.endif
PROG= acpi
SRCS= \
acpi.c \
pci.c \
osminixxf.c
ACPICA_SRCS= \
utxface.c \
utdelete.c \
utobject.c \
utcopy.c \
utids.c \
utglobal.c \
utalloc.c \
utstate.c \
utdebug.c \
uteval.c \
utcache.c \
utlock.c \
uttrack.c \
utclib.c \
utinit.c \
utmisc.c \
utmutex.c \
utresrc.c \
utmath.c \
nsparse.c \
nsutils.c \
nsaccess.c \
nsrepair.c \
nsalloc.c \
nswalk.c \
nsnames.c \
nssearch.c \
nsxfname.c \
nseval.c \
nsxfobj.c \
nsobject.c \
nspredef.c \
nsdumpdv.c \
nsload.c \
nsdump.c \
nsinit.c \
nsrepair2.c \
nsxfeval.c \
rsirq.c \
rsmisc.c \
rsio.c \
rsaddr.c \
rsutils.c \
rscreate.c \
rsdump.c \
rscalc.c \
rslist.c \
rsxface.c \
rsinfo.c \
rsmemory.c \
dsobject.c \
dsmethod.c \
dsopcode.c \
dswscope.c \
dsinit.c \
dswexec.c \
dswstate.c \
dsfield.c \
dsmthdat.c \
dsutils.c \
dswload.c \
evxfregn.c \
evrgnini.c \
evregion.c \
evgpeblk.c \
evxface.c \
evmisc.c \
evgpeutil.c \
evgpeinit.c \
evxfevnt.c \
evevent.c \
evsci.c \
evgpe.c \
exoparg1.c \
exutils.c \
excreate.c \
exstore.c \
exregion.c \
exoparg6.c \
exprep.c \
exmutex.c \
exnames.c \
exoparg2.c \
exdump.c \
exmisc.c \
exresolv.c \
exdebug.c \
exstoren.c \
exoparg3.c \
exstorob.c \
exconfig.c \
exresop.c \
exfield.c \
exfldio.c \
exresnte.c \
exconvrt.c \
exsystem.c \
tbfadt.c \
tbxface.c \
tbxfroot.c \
tbutils.c \
tbinstal.c \
tbfind.c \
psutils.c \
psargs.c \
psloop.c \
psparse.c \
pswalk.c \
pstree.c \
psopcode.c \
psxface.c \
psscope.c \
hwregs.c \
hwsleep.c \
hwvalid.c \
hwgpe.c \
hwacpi.c \
hwtimer.c \
hwxface.c
.PATH: ${.CURDIR}/utilities ${.CURDIR}/namespace ${.CURDIR}/resources \
${.CURDIR}/dispatcher ${.CURDIR}/events ${.CURDIR}/executer \
${.CURDIR}/tables ${.CURDIR}/parser ${.CURDIR}/hardware
SRCS+=${ACPICA_SRCS}
Split block/character protocols and libdriver This patch separates the character and block driver communication protocols. The old character protocol remains the same, but a new block protocol is introduced. The libdriver library is replaced by two new libraries: libchardriver and libblockdriver. Their exposed API, and drivers that use them, have been updated accordingly. Together, libbdev and libblockdriver now completely abstract away the message format used by the block protocol. As the memory driver is both a character and a block device driver, it now implements its own message loop. The most important semantic change made to the block protocol is that it is no longer possible to return both partial results and an error for a single transfer. This simplifies the interaction between the caller and the driver, as the I/O vector no longer needs to be copied back. Also, drivers are now no longer supposed to decide based on the layout of the I/O vector when a transfer should be cut short. Put simply, transfers are now supposed to either succeed completely, or result in an error. After this patch, the state of the various pieces is as follows: - block protocol: stable - libbdev API: stable for synchronous communication - libblockdriver API: needs slight revision (the drvlib/partition API in particular; the threading API will also change shortly) - character protocol: needs cleanup - libchardriver API: needs cleanup accordingly - driver restarts: largely unsupported until endpoint changes are reintroduced As a side effect, this patch eliminates several bugs, hacks, and gcc -Wall and -W warnings all over the place. It probably introduces a few new ones, too. Update warning: this patch changes the protocol between MFS and disk drivers, so in order to use old/new images, the MFS from the ramdisk must be used to mount all file systems.
2011-11-22 13:27:53 +01:00
DPADD+= ${LIBSYS}
LDADD+= -lsys -lc
CPPFLAGS += -I${.CURDIR}/include
CFLAGS += -DACPI_LIBRARY
CFLAGS += -std=c99
MAN=
BINDIR?= /usr/sbin
2011-07-09 15:04:42 +02:00
.include <minix.service.mk>