[patch] to fix kernel version counter

Michal Belczyk diavul at bsd.krakow.pl
Wed Nov 3 12:41:19 PST 2004


On Wed, Nov 03, 2004 at 10:07:23AM -0800, walt wrote:
> This allows the 'version' number of the kernel to increment with
> each 'make quickkernel' :
> 
> --- src/Makefile.inc1.old       2004-11-03 09:31:00.000000000 -0800
> +++ src/Makefile.inc1   2004-11-03 09:51:08.000000000 -0800
> @@ -643,6 +643,7 @@
>                         ${KERNCONFDIR}/${_kernel}
>  .endif
>         cd ${KRNLOBJDIR}/${_kernel}; \
> +           rm -f vers.*; \
>             ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} all
>  .else
>  .if !defined(NO_KERNELCONFIG)

Here's another small fix for src/Makefile.inc1, for 'make update'
target with CVS_UPDATE defined:

Index: Makefile.inc1
===================================================================
RCS file: /home/dcvs/src/Makefile.inc1,v
retrieving revision 1.44
diff -u -r1.44 Makefile.inc1
--- Makefile.inc1	27 Oct 2004 16:34:32 -0000	1.44
+++ Makefile.inc1	1 Nov 2004 18:44:27 -0000
@@ -701,9 +701,9 @@
 .endif
 .if defined(CVS_UPDATE)
 	@echo "--------------------------------------------------------------"
-	@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
+	@echo ">>> Updating ${.CURDIR} from cvs repository"
 	@echo "--------------------------------------------------------------"
-	cd ${.CURDIR}; cvs -q update -rRELENG_4 -P -d
+	cd ${.CURDIR}; cvs -q update -P -d
 .endif
 
 #

-- 
Michal Belczyk





More information about the Submit mailing list