diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2017-07-18 16:43:28 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2017-07-18 16:43:28 +0000 |
commit | 173f1a18d177b467033209e42cb342817ccd80fa (patch) | |
tree | 246449f3ae26f2b343f009dacc3eb43e81df3463 /sys/arch/loongson | |
parent | 54ab0cf8f2c35d6b32eba5c56d8a45c3c35d26dc (diff) |
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 'sys/arch/loongson')
-rw-r--r-- | sys/arch/loongson/conf/Makefile.loongson | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson index 3ffc0ab34dd..f38c5139564 100644 --- a/sys/arch/loongson/conf/Makefile.loongson +++ b/sys/arch/loongson/conf/Makefile.loongson @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.loongson,v 1.64 2017/07/16 16:47:07 visa Exp $ +# $OpenBSD: Makefile.loongson,v 1.65 2017/07/18 16:43:27 tb Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -133,8 +133,10 @@ gapdummy.o: makegap.sh: cp $S/conf/makegap.sh $@ -gap.o: Makefile makegap.sh gapdummy.o - LD="${LD}" sh makegap.sh 0xefefefef gapdummy.o +MAKE_GAP = LD="${LD}" sh makegap.sh 0xefefefef gapdummy.o + +gap.o: Makefile makegap.sh gapdummy.o vers.o + ${MAKE_GAP} vers.o: ${SYSTEM_DEP:Ngap.o} sh $S/conf/newvers.sh @@ -175,7 +177,7 @@ install: update-link newinstall ${SYSTEM_OBJ}: ${DB_STRUCTINFO} .endif .ifnmake clean -. for o in ${SYSTEM_OBJ} assym.h ${DB_STRUCTINFO} +. for o in ${SYSTEM_OBJ:Ngap.o} assym.h ${DB_STRUCTINFO} . if exists(${o:R}.d) . include "${o:R}.d" . elif exists($o) |