Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump If IOCONFIG is defined, autogenerate ioconf.c and l...



details:   https://anonhg.NetBSD.org/src/rev/ae91714b3198
branches:  trunk
changeset: 751426:ae91714b3198
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Feb 03 21:11:24 2010 +0000

description:
If IOCONFIG is defined, autogenerate ioconf.c and locators.h
from ${IOCONFIG}.

diffstat:

 sys/rump/Makefile.rump |  18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r ac87ec650084 -r ae91714b3198 sys/rump/Makefile.rump
--- a/sys/rump/Makefile.rump    Wed Feb 03 21:02:39 2010 +0000
+++ b/sys/rump/Makefile.rump    Wed Feb 03 21:11:24 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.rump,v 1.46 2010/01/31 00:38:36 pooka Exp $
+#      $NetBSD: Makefile.rump,v 1.47 2010/02/03 21:11:24 pooka Exp $
 #
 
 WARNS?=                3       # XXX: src/sys won't compile with -Wsign-compare yet
@@ -100,6 +100,20 @@
 .if !defined(RUMP_SYMREN)
        ${AR} ${_ARRANFL} ${.TARGET}
 .endif
-       
+
+# If IOCONFIG is defined, autocreate ioconf.c and locators.h.
+# This is useful mainly for devices.
+.if !empty(IOCONFIG)
+ioconf.c: ${IOCONFIG}
+       ${TOOL_CONFIG} -b ${.OBJDIR} -s ${RUMPTOP}/.. ${IOCONFIG} 
+       # config doesn't change the files if they're unchanged.  however,
+       # here we want to satisfy our make dependency, so force a
+       # timestamp update
+       touch ioconf.c locators.h
+
+CLEANFILES+= ioconf.c locators.h
+DPSRCS+= ioconf.c locators.h
+.endif
+
 .-include "${NETBSDSRCDIR}/sys/arch/${MACHINE_CPU}/include/Makefile.inc"
 .-include "${NETBSDSRCDIR}/sys/arch/${MACHINE}/include/Makefile.inc"



Home | Main Index | Thread Index | Old Index