vkernel - Fix installkernel target
[dragonfly.git] / sys / conf / kern.paths.mk
CommitLineData
3b25fbd4
YT
1# Set up the default install paths for kernel/modules
2#
3# DESTLABEL add suffix to kernel and modules directory [not set]
4# DESTKERNDIR where kernel and modules are to be installed [/boot]
5# DESTKERNNAME name of installed kernel [${KERNEL}]
116b7e3c 6# OLDMODULESDIR (deprecated)
3b25fbd4
YT
7#
8.if defined(DESTLABEL)
116b7e3c
MD
9DESTKERNDIR?= /boot/${KERNEL}.${DESTLABEL}
10DESTKERNNAME?= kernel
11OLDMODULESDIR?= /boot/modules.${DESTLABEL}
3b25fbd4 12.else
116b7e3c
MD
13DESTKERNDIR?= /boot/${KERNEL}
14DESTKERNNAME?= kernel
15OLDMODULESDIR?= /boot/modules
3b25fbd4 16.endif
663216ba
YT
17
18# Set DESTDIR to /var/vkernel by default for vkernel platform so as
19# not to shoot the real kernel installation.
b6a66df5 20.if ${MACHINE_PLATFORM} == vkernel || ${MACHINE_PLATFORM} == vkernel64
663216ba 21DESTDIR?= /var/vkernel
5b8f9b1e
MS
22# Unset DESTKERNDIR as we install the kernel directly into $DESTDIR
23DESTKERNDIR=
663216ba 24.endif