diff options
author | 2017-08-23 13:13:37 +0000 | |
---|---|---|
committer | 2017-08-23 13:13:37 +0000 | |
commit | d78306483edaa80e374ab1648ab07c764695d6b3 (patch) | |
tree | df4cf43dc24a0d4c7384803f4127946141ceb78c | |
parent | Fix typos in iwm(4) error messages. Patch by Bryan Linton. (diff) | |
download | wireguard-openbsd-d78306483edaa80e374ab1648ab07c764695d6b3.tar.xz wireguard-openbsd-d78306483edaa80e374ab1648ab07c764695d6b3.zip |
Install the patched kernel on the build machine just like we do for
userland.
ok robert@
-rw-r--r-- | distrib/syspatch/bsd.syspatch.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/distrib/syspatch/bsd.syspatch.mk b/distrib/syspatch/bsd.syspatch.mk index 845cba80749..c9d227499c0 100644 --- a/distrib/syspatch/bsd.syspatch.mk +++ b/distrib/syspatch/bsd.syspatch.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.syspatch.mk,v 1.17 2017/08/21 08:46:33 ajacoutot Exp $ +# $OpenBSD: bsd.syspatch.mk,v 1.18 2017/08/23 13:13:37 ajacoutot Exp $ # # Copyright (c) 2016-2017 Robert Nagy <robert@openbsd.org> # @@ -49,6 +49,7 @@ PATCH_ARGS= -d ${SRCDIR} -z .orig --forward --quiet -E ${PATCH_STRIP} # miscellaneous variables SYSPATCH_DIR= ${FAKE}/var/syspatch/${SYSPATCH_SHRT} FAKE= ${FAKEROOT}/syspatch/${SYSPATCH_SHRT} +KERNEL= $$(sysctl -n kern.osversion | cut -d '\#' -f 1) SUBDIR?= _PATCH_COOKIE= ${ERRATA}/.patch_done @@ -175,6 +176,9 @@ ${_BUILD_COOKIE}: ${_PATCH_COOKIE} ${_FAKE_COOKIE} exit 1; }; \ fi; exit 0 . endfor +# install newly built kernel on the build machine + @cd ${SRCDIR}/sys/arch/${MACHINE_ARCH}/compile/${KERNEL} && \ + make install .endif @su ${BUILDUSER} -c 'touch $@' .endif |