Generate vers.c and include it in the kernel component.

This commit is contained in:
pooka 2009-12-16 20:57:15 +00:00
parent ffd78a62ec
commit 590ffe150c
3 changed files with 10 additions and 6 deletions

View File

@ -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

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/null.h>
@ -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;

View File

@ -0,0 +1 @@
RUMP-ROAST