summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1998-05-20 20:35:42 +0000
committereivind <eivind@FreeBSD.org>1998-05-20 20:35:42 +0000
commit7535afa645a002171419923c9fc20f1f6fefaca4 (patch)
tree6d1bae1fc57f517da957e10992a8991c6dd20415 /sys
parente1b5e9c9781819d2174830fe15198a0d9e33d2c9 (diff)
downloadFreeBSD-src-7535afa645a002171419923c9fc20f1f6fefaca4.zip
FreeBSD-src-7535afa645a002171419923c9fc20f1f6fefaca4.tar.gz
Move __FreeBSD_version into <sys/param.h> (with automated duplication
to <osreldate.h>). This allow kernel drivers access to it. Approved by: -current
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/Makefile.i3864
-rw-r--r--sys/conf/Makefile.powerpc4
-rw-r--r--sys/conf/newvers.sh5
-rw-r--r--sys/i386/conf/Makefile.i3864
-rw-r--r--sys/sys/param.h4
5 files changed, 12 insertions, 9 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index c01fb1c..c1af1d0 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.109 1998/04/17 07:51:36 dima Exp $
+# $Id: Makefile.i386,v 1.110 1998/04/29 18:21:28 imp Exp $
#
# Makefile for FreeBSD
#
@@ -226,7 +226,7 @@ param.c: $S/conf/param.c
param.o: param.c Makefile
${CC} -c ${CFLAGS} ${PARAM} param.c
-vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
+vers.o: $S/sys/param.h ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh ${KERN_IDENT} ${IDENT}
${CC} ${CFLAGS} -c vers.c
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index c01fb1c..c1af1d0 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.109 1998/04/17 07:51:36 dima Exp $
+# $Id: Makefile.i386,v 1.110 1998/04/29 18:21:28 imp Exp $
#
# Makefile for FreeBSD
#
@@ -226,7 +226,7 @@ param.c: $S/conf/param.c
param.o: param.c Makefile
${CC} -c ${CFLAGS} ${PARAM} param.c
-vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
+vers.o: $S/sys/param.h ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh ${KERN_IDENT} ${IDENT}
${CC} ${CFLAGS} -c vers.c
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index 31fdd08..cd86bfe 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -32,7 +32,7 @@
# SUCH DAMAGE.
#
# @(#)newvers.sh 8.1 (Berkeley) 4/20/94
-# $Id: newvers.sh,v 1.33 1997/07/09 20:38:19 wosch Exp $
+# $Id: newvers.sh,v 1.34 1997/09/24 04:36:19 jdp Exp $
TYPE="FreeBSD"
REVISION="3.0"
@@ -44,7 +44,8 @@ if [ "X${SNAPDATE}" != "X" ]; then
fi
VERSION="${TYPE} ${RELEASE}"
-RELDATE="300001"
+RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' \
+ $(dirname $0)/../sys/param.h)
b=share/examples/etc/bsd-style-copyright
year=`date '+%Y'`
diff --git a/sys/i386/conf/Makefile.i386 b/sys/i386/conf/Makefile.i386
index c01fb1c..c1af1d0 100644
--- a/sys/i386/conf/Makefile.i386
+++ b/sys/i386/conf/Makefile.i386
@@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.109 1998/04/17 07:51:36 dima Exp $
+# $Id: Makefile.i386,v 1.110 1998/04/29 18:21:28 imp Exp $
#
# Makefile for FreeBSD
#
@@ -226,7 +226,7 @@ param.c: $S/conf/param.c
param.o: param.c Makefile
${CC} -c ${CFLAGS} ${PARAM} param.c
-vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
+vers.o: $S/sys/param.h ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh ${KERN_IDENT} ${IDENT}
${CC} ${CFLAGS} -c vers.c
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 68ac09c..a3fb30a 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)param.h 8.3 (Berkeley) 4/4/95
- * $Id: param.h,v 1.27 1997/09/21 22:09:16 gibbs Exp $
+ * $Id: param.h,v 1.28 1998/03/28 10:33:22 bde Exp $
*/
#ifndef _SYS_PARAM_H_
@@ -45,6 +45,8 @@
#define BSD 199506 /* System version (year & month). */
#define BSD4_3 1
#define BSD4_4 1
+#undef __FreeBSD_version
+#define __FreeBSD_version 300001 /* Master version, propagated to newvers */
#ifndef NULL
#define NULL 0
OpenPOWER on IntegriCloud