0002-Set-the-default-DESTDIR-to-var-vkernel-when-the-pla.patch

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

Download (1.46 KB)

View differences:

sys/conf/kern.paths.mk
13 13
DESTMODULESNAME?=	modules
14 14
.endif
15 15
DESTKERNDIR?=		/boot
16

  
17
# Set DESTDIR to /var/vkernel by default for vkernel platform so as
18
# not to shoot the real kernel installation.
19
.if ${MACHINE_PLATFORM} == vkernel
20
DESTDIR?=		/var/vkernel
21
.endif
sys/conf/kern.post.mk
142 142
.endif
143 143

  
144 144
kernel-installable:
145
.if ${P} == vkernel
146
.if !defined(DESTDIR)
147
	@echo "When installing a virtual kernel, DESTDIR must be manually specified"
148
	@exit 1
149
.endif
150 145
	@if [ -f ${DESTDIR}/${DESTKERNNAME} ]; then \
151 146
		echo "You need to make buildworld, installworld, and upgrade"; \
152 147
		echo "before you can install a new kernel, because the"; \
153
-