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 b22601d2c6
2 changed files with 5 additions and 5 deletions

View File

@ -80,18 +80,18 @@ CPPFLAGS+= -DUSE_TRACE
CLEANFILES+=extracted-errno.h extracted-mfield.h extracted-mtype.h procoffsets.h
debug.o: extracted-errno.h extracted-mfield.h extracted-mtype.h
debug.d: extracted-errno.h extracted-mfield.h extracted-mtype.h
extracted-errno.h: extract-errno.sh ../include/errno.h
${_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
${_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
${_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>

View File

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