diff options
author | imp <imp@FreeBSD.org> | 2007-03-23 21:55:59 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2007-03-23 21:55:59 +0000 |
commit | 906cc0e48ec53cd60510a75f2a69413a92b39303 (patch) | |
tree | 3c597ff706be4033c72c8a178a969a31ff6a2d3f /sys/conf/kern.post.mk | |
parent | 47635a5d8ec065181966f4c4b3edd57bcbc35081 (diff) | |
download | FreeBSD-src-906cc0e48ec53cd60510a75f2a69413a92b39303.zip FreeBSD-src-906cc0e48ec53cd60510a75f2a69413a92b39303.tar.gz |
If KERNEL_EXTRA is defined, make kernel-all target depend on it.
If KERNEL_EXTRA_INSTALL is defined, install it into ${DESTDIR}${KODIR}.
Diffstat (limited to 'sys/conf/kern.post.mk')
-rw-r--r-- | sys/conf/kern.post.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index d1ed462..1eca596 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -42,7 +42,7 @@ ports-${__target}: .ORDER: kernel-install modules-install -kernel-all: ${KERNEL_KO} +kernel-all: ${KERNEL_KO} ${KERNEL_EXTRA} kernel-cleandir: kernel-clean kernel-cleandepend @@ -224,6 +224,11 @@ kernel-install: .if defined(DEBUG) && !defined(INSTALL_NODEBUG) ${INSTALL} -p -m 555 -o root -g wheel ${KERNEL_KO}.symbols ${DESTDIR}${KODIR} .endif +.if defined(KERNEL_EXTRA_INSTALL) + ${INSTALL} -p -m 555 -o root -g wheel ${KERNEL_EXTRA_INSTALL} ${DESTDIR}${KODIR} +.endif + + kernel-reinstall: @-chflags -R noschg ${DESTDIR}${KODIR} |