2005-06-28 17:19:58 +02:00
|
|
|
# Makefile for inet.
|
2010-03-22 22:25:22 +01:00
|
|
|
PROG= inet
|
|
|
|
SRCS= buf.c clock.c inet.c inet_config.c \
|
|
|
|
mnx_eth.c mq.c qp.c sr.c \
|
|
|
|
udp.c arp.c eth.c event.c \
|
|
|
|
icmp.c io.c ip.c ip_ioctl.c \
|
|
|
|
ip_lib.c ip_read.c ip_write.c \
|
|
|
|
ipr.c rand256.c tcp.c tcp_lib.c \
|
|
|
|
tcp_recv.c tcp_send.c ip_eth.c \
|
|
|
|
ip_ps.c psip.c \
|
2010-11-15 12:10:02 +01:00
|
|
|
queryparam.c version.c
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-03-22 22:25:22 +01:00
|
|
|
.PATH: ${.CURDIR}/generic
|
2005-04-21 16:53:53 +02:00
|
|
|
|
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+= ${LIBCHARDRIVER} ${LIBSYS} ${LIBMINIXUTIL}
|
2012-02-03 14:03:59 +01:00
|
|
|
LDADD+= -lchardriver -lsys
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2012-01-31 16:43:00 +01:00
|
|
|
.if ${COMPILER_TYPE} == "gnu"
|
|
|
|
LDADD+= -lc
|
2012-02-03 14:03:59 +01:00
|
|
|
.else
|
|
|
|
LDADD+= -lminixutil
|
2012-01-31 16:43:00 +01:00
|
|
|
.endif
|
|
|
|
|
2010-03-22 22:25:22 +01:00
|
|
|
MAN=
|
2005-06-28 17:19:58 +02:00
|
|
|
|
2010-03-22 22:25:22 +01:00
|
|
|
BINDIR?= /usr/sbin
|
2005-06-28 17:19:58 +02:00
|
|
|
|
2012-01-31 16:43:00 +01:00
|
|
|
CPPFLAGS+= -I${.CURDIR} -D_MINIX -Wall -Werror
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2011-07-09 15:04:42 +02:00
|
|
|
.include <minix.service.mk>
|