I'm sick of the automatic rename of /kernel to /kernel.old while doing

development that leads to lots of crashes during boot.

I have made a 'reinstall' target (like in ports, and reinstall.debug)
This is most useful if you want to keep /kernel.old as a known bootable
kernel.  If you test a new kernel and have to reboot for a fix, a
'make reinstall' will install the new kernel over the top of the old
non-viable one, leaving the old one untouched.  This is mainly meant
for development, not general users.
This commit is contained in:
peter 1999-05-08 20:04:39 +00:00
parent e965213931
commit 3f78b53e89
5 changed files with 25 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Makefile.alpha -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.alpha 7.1 5/10/91
# $Id: Makefile.alpha,v 1.22 1999/04/21 19:50:27 dfr Exp $
# $Id: Makefile.alpha,v 1.23 1999/04/24 21:38:49 peter Exp $
#
# Makefile for FreeBSD
#
@ -271,6 +271,10 @@ install install.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/install//} ${DESTDIR}/${KERNEL}
reinstall reinstall.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/reinstall//} ${DESTDIR}/${KERNEL}
ioconf.o: ioconf.c $S/sys/param.h $S/sys/buf.h
${CC} -c ${CFLAGS} ioconf.c

View File

@ -1,7 +1,7 @@
# Makefile.alpha -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.alpha 7.1 5/10/91
# $Id: Makefile.alpha,v 1.22 1999/04/21 19:50:27 dfr Exp $
# $Id: Makefile.alpha,v 1.23 1999/04/24 21:38:49 peter Exp $
#
# Makefile for FreeBSD
#
@ -271,6 +271,10 @@ install install.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/install//} ${DESTDIR}/${KERNEL}
reinstall reinstall.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/reinstall//} ${DESTDIR}/${KERNEL}
ioconf.o: ioconf.c $S/sys/param.h $S/sys/buf.h
${CC} -c ${CFLAGS} ioconf.c

View File

@ -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.147 1999/04/19 14:14:08 peter Exp $
# $Id: Makefile.i386,v 1.148 1999/04/24 21:38:50 peter Exp $
#
# Makefile for FreeBSD
#
@ -241,6 +241,10 @@ install install.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/install//} ${DESTDIR}/${KERNEL}
reinstall reinstall.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/reinstall//} ${DESTDIR}/${KERNEL}
config.o:
${NORMAL_C}

View File

@ -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.147 1999/04/19 14:14:08 peter Exp $
# $Id: Makefile.i386,v 1.148 1999/04/24 21:38:50 peter Exp $
#
# Makefile for FreeBSD
#
@ -241,6 +241,10 @@ install install.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/install//} ${DESTDIR}/${KERNEL}
reinstall reinstall.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/reinstall//} ${DESTDIR}/${KERNEL}
config.o:
${NORMAL_C}

View File

@ -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.147 1999/04/19 14:14:08 peter Exp $
# $Id: Makefile.i386,v 1.148 1999/04/24 21:38:50 peter Exp $
#
# Makefile for FreeBSD
#
@ -241,6 +241,10 @@ install install.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/install//} ${DESTDIR}/${KERNEL}
reinstall reinstall.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/reinstall//} ${DESTDIR}/${KERNEL}
config.o:
${NORMAL_C}