kernel: add dependency for DEBUG_DUMPIPC mode

. also resilience against future ELAST duplicate errno

Change-Id: I9d10702c8e09699a40138193f14defe902399da6
This commit is contained in:
Ben Gras 2013-09-23 12:23:34 +00:00
parent cb5e2921b3
commit 86770b0ac5
3 changed files with 6 additions and 6 deletions

View File

@ -80,18 +80,18 @@ CPPFLAGS+= -DUSE_TRACE
CLEANFILES+=extracted-errno.h extracted-mfield.h extracted-mtype.h procoffsets.h CLEANFILES+=extracted-errno.h extracted-mfield.h extracted-mtype.h procoffsets.h
debug.o: extracted-errno.h extracted-mfield.h extracted-mtype.h debug.o debug.d: extracted-errno.h extracted-mfield.h extracted-mtype.h
extracted-errno.h: extract-errno.sh ../include/errno.h extracted-errno.h: extract-errno.sh ../include/errno.h
${_MKTARGET_CREATE} ${_MKTARGET_CREATE}
cd ${.CURDIR} ; ${HOST_SH} extract-errno.sh > ${.OBJDIR}/extracted-errno.h cd ${.CURDIR} ; ${HOST_SH} extract-errno.sh > extracted-errno.h
extracted-mfield.h: extract-mfield.sh ../lib/libc/sys-minix/*.c ../lib/libsys/*.c extracted-mfield.h: extract-mfield.sh ../lib/libc/sys-minix/*.c ../lib/libsys/*.c
${_MKTARGET_CREATE} ${_MKTARGET_CREATE}
cd ${.CURDIR} ; ${HOST_SH} extract-mfield.sh > ${.OBJDIR}/extracted-mfield.h cd ${.CURDIR} ; ${HOST_SH} extract-mfield.sh > extracted-mfield.h
extracted-mtype.h: extract-mtype.sh ../include/minix/com.h extracted-mtype.h: extract-mtype.sh ../include/minix/com.h
${_MKTARGET_CREATE} ${_MKTARGET_CREATE}
cd ${.CURDIR} ; ${HOST_SH} extract-mtype.sh > ${.OBJDIR}/extracted-mtype.h cd ${.CURDIR} ; ${HOST_SH} extract-mtype.sh > extracted-mtype.h
.include <minix.service.mk> .include <minix.service.mk>

View File

@ -44,7 +44,7 @@
* virtual machine if you enable this; on the hardware it would take forever * virtual machine if you enable this; on the hardware it would take forever
* just to boot * just to boot
*/ */
#define DEBUG_DUMPIPC 0 #define DEBUG_DUMPIPC 1
/* If defined, restrict DEBUG_DUMPIPC to particular process names */ /* If defined, restrict DEBUG_DUMPIPC to particular process names */
/* #define DEBUG_DUMPIPC_NAMES { "tty", "inet" } */ /* #define DEBUG_DUMPIPC_NAMES { "tty", "inet" } */

View File

@ -8,5 +8,5 @@ tr -s ' \t' ' ' | \
sed 's/^# /#/' | \ sed 's/^# /#/' | \
egrep '^#define [A-Z_][A-Z0-9_]* \( ?_SIGN ?[0-9]+ ?\)' | \ egrep '^#define [A-Z_][A-Z0-9_]* \( ?_SIGN ?[0-9]+ ?\)' | \
cut -d' ' -f2 | \ cut -d' ' -f2 | \
sed 's/\(.*\)/IDENT(\1)/' | \ sed 's/\(.*\)/IDENT(\1)/' | grep -v ELAST | \
sort sort