Project

General

Profile

Bug #1140 » 0002-Set-the-default-DESTDIR-to-var-vkernel-when-the-pla.patch

qhwt+dfly, 02/08/2009 08:24 AM

View differences:

sys/conf/kern.paths.mk
DESTMODULESNAME?= modules
.endif
DESTKERNDIR?= /boot
# Set DESTDIR to /var/vkernel by default for vkernel platform so as
# not to shoot the real kernel installation.
.if ${MACHINE_PLATFORM} == vkernel
DESTDIR?= /var/vkernel
.endif
sys/conf/kern.post.mk
.endif
kernel-installable:
.if ${P} == vkernel
.if !defined(DESTDIR)
@echo "When installing a virtual kernel, DESTDIR must be manually specified"
@exit 1
.endif
@if [ -f ${DESTDIR}/${DESTKERNNAME} ]; then \
echo "You need to make buildworld, installworld, and upgrade"; \
echo "before you can install a new kernel, because the"; \
(14-14/14)