From 590ffe150c81764bb827c676e0a4c5bbefd7cac3 Mon Sep 17 00:00:00 2001 From: pooka Date: Wed, 16 Dec 2009 20:57:15 +0000 Subject: [PATCH] Generate vers.c and include it in the kernel component. --- sys/rump/librump/rumpkern/Makefile.rumpkern | 8 +++++++- sys/rump/librump/rumpkern/emul.c | 7 ++----- sys/rump/librump/rumpkern/ident | 1 + 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 sys/rump/librump/rumpkern/ident diff --git a/sys/rump/librump/rumpkern/Makefile.rumpkern b/sys/rump/librump/rumpkern/Makefile.rumpkern index 5913edf7ba6a..1529376568d7 100644 --- a/sys/rump/librump/rumpkern/Makefile.rumpkern +++ b/sys/rump/librump/rumpkern/Makefile.rumpkern @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.rumpkern,v 1.68 2009/12/14 21:19:23 matt Exp $ +# $NetBSD: Makefile.rumpkern,v 1.69 2009/12/16 20:57:15 pooka Exp $ # .include "${RUMPTOP}/Makefile.rump" @@ -19,6 +19,12 @@ SRCS= rump.c rumpcopy.c emul.c intr.c locks.c ltsleep.c \ memalloc.c percpu.c scheduler.c sleepq.c \ sysproxy_socket.c threads.c vm.c +vers.c: ${RUMPTOP}/../conf/newvers.sh ${RUMPTOP}/../conf/osrelease.sh + ${_MKMSG_CREATE} vers.c + ${HOST_SH} ${RUMPTOP}/../conf/newvers.sh -i +SRCS+= vers.c +CLEANFILES+= vers.c version + # stubs # SRCS+= pmap_stub.c diff --git a/sys/rump/librump/rumpkern/emul.c b/sys/rump/librump/rumpkern/emul.c index 16999b81c60f..075c9c9c0277 100644 --- a/sys/rump/librump/rumpkern/emul.c +++ b/sys/rump/librump/rumpkern/emul.c @@ -1,4 +1,4 @@ -/* $NetBSD: emul.c,v 1.112 2009/12/03 12:35:34 pooka Exp $ */ +/* $NetBSD: emul.c,v 1.113 2009/12/16 20:57:15 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -28,7 +28,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.112 2009/12/03 12:35:34 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.113 2009/12/16 20:57:15 pooka Exp $"); #include #include @@ -84,9 +84,6 @@ char hostname[MAXHOSTNAMELEN]; size_t hostnamelen; const char *panicstr; -const char ostype[] = "NetBSD"; -const char osrelease[] = "999"; /* paradroid 4evah */ -const char kernel_ident[] = "RUMP-ROAST"; const char *domainname; int domainnamelen; diff --git a/sys/rump/librump/rumpkern/ident b/sys/rump/librump/rumpkern/ident new file mode 100644 index 000000000000..5ceab103f574 --- /dev/null +++ b/sys/rump/librump/rumpkern/ident @@ -0,0 +1 @@ +RUMP-ROAST