summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2017-07-18 16:43:27 +0000
committertb <tb@openbsd.org>2017-07-18 16:43:27 +0000
commite5b71ac4c43797dbd4fa0150c8915bee907439f1 (patch)
tree1637e5657fbf0984410db75ea23e87d5be6ab288 /usr.sbin/config
parentUse numerical sysctl output to check for nfs mounts. (diff)
downloadwireguard-openbsd-e5b71ac4c43797dbd4fa0150c8915bee907439f1.tar.xz
wireguard-openbsd-e5b71ac4c43797dbd4fa0150c8915bee907439f1.zip
Stop automatically regenerating gap.o (and hence linking a new kernel)
whenever make is issued. Only do this when there are actual source changes below /sys. This restores the behavior prior to the KARL implementation. Problem noticed and patiently explained by mpi implementation with a lot of help from espie ok mpi, espie, deraadt
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/mkmakefile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index c2ac4c63626..79f59c898ab 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkmakefile.c,v 1.43 2017/06/22 15:57:16 deraadt Exp $ */
+/* $OpenBSD: mkmakefile.c,v 1.44 2017/07/18 16:43:27 tb Exp $ */
/* $NetBSD: mkmakefile.c,v 1.34 1997/02/02 21:12:36 thorpej Exp $ */
/*
@@ -510,9 +510,10 @@ emitload(FILE *fp)
if (fputs("\t${NORMAL_C}\n\n", fp) < 0)
return (1);
- if (fprintf(fp, "new%s: gap.o\n", nm) < 0)
+ if (fprintf(fp, "new%s:\n", nm) < 0)
return (1);
if (fprintf(fp,
+ "\t${MAKE_GAP}\n"
"\t${SYSTEM_LD_HEAD}\n"
"\t${SYSTEM_LD} swap%s.o\n"
"\t${SYSTEM_LD_TAIL}\n"