summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2017-09-28 16:16:35 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2017-09-28 16:16:35 +0000
commit25eb07918a1a4b7505e9d3227f38b971eda21160 (patch)
tree8a7b5a3fc8ea4cfaf2bcacff9c0d3358ff9c7517
parent96492d9ddd9680e3cc078bc1c8da8434c1ae7b7b (diff)
When option DDB_STRUCTINFO was removed from the kernel, too much from
the kernel makefiles was removed which lead to C files not being re- compiled when a dependency changed. This can lead to panics in odd places and generally a broken system. ok deraadt@
-rw-r--r--sys/arch/alpha/conf/Makefile.alpha13
-rw-r--r--sys/arch/amd64/conf/Makefile.amd6413
-rw-r--r--sys/arch/arm64/conf/Makefile.arm6413
-rw-r--r--sys/arch/armv7/conf/Makefile.armv713
-rw-r--r--sys/arch/hppa/conf/Makefile.hppa13
-rw-r--r--sys/arch/i386/conf/Makefile.i38613
-rw-r--r--sys/arch/landisk/conf/Makefile.landisk13
-rw-r--r--sys/arch/loongson/conf/Makefile.loongson13
-rw-r--r--sys/arch/luna88k/conf/Makefile.luna88k13
-rw-r--r--sys/arch/macppc/conf/Makefile.macppc13
-rw-r--r--sys/arch/octeon/conf/Makefile.octeon13
-rw-r--r--sys/arch/sgi/conf/Makefile.sgi13
-rw-r--r--sys/arch/socppc/conf/Makefile.socppc13
-rw-r--r--sys/arch/sparc64/conf/Makefile.sparc6413
14 files changed, 168 insertions, 14 deletions
diff --git a/sys/arch/alpha/conf/Makefile.alpha b/sys/arch/alpha/conf/Makefile.alpha
index 0079f644938..3c0f618f402 100644
--- a/sys/arch/alpha/conf/Makefile.alpha
+++ b/sys/arch/alpha/conf/Makefile.alpha
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.alpha,v 1.108 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.alpha,v 1.109 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -146,4 +146,15 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES
diff --git a/sys/arch/amd64/conf/Makefile.amd64 b/sys/arch/amd64/conf/Makefile.amd64
index d6cd443759f..602634de28e 100644
--- a/sys/arch/amd64/conf/Makefile.amd64
+++ b/sys/arch/amd64/conf/Makefile.amd64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.amd64,v 1.93 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.amd64,v 1.94 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -153,4 +153,15 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES
diff --git a/sys/arch/arm64/conf/Makefile.arm64 b/sys/arch/arm64/conf/Makefile.arm64
index 3e5e9d19739..625068da87f 100644
--- a/sys/arch/arm64/conf/Makefile.arm64
+++ b/sys/arch/arm64/conf/Makefile.arm64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.arm64,v 1.22 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.arm64,v 1.23 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -154,6 +154,17 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
## for qemu this is where ram is located
RAM_ADDR?=0x40000000
#KERNEL_LOAD_ADDR!=echo "x = hex(${KERNEL_BASE_PHYS} + ${RAM_ADDR}); print x" | python
diff --git a/sys/arch/armv7/conf/Makefile.armv7 b/sys/arch/armv7/conf/Makefile.armv7
index ed0a33aee09..0007297d685 100644
--- a/sys/arch/armv7/conf/Makefile.armv7
+++ b/sys/arch/armv7/conf/Makefile.armv7
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.armv7,v 1.35 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.armv7,v 1.36 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -153,6 +153,17 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
# until we get native booting working, put this in the tree.
KERNADDR_OMAP=0x80300000
KERNADDR_IMX=0x10300000
diff --git a/sys/arch/hppa/conf/Makefile.hppa b/sys/arch/hppa/conf/Makefile.hppa
index 320ecc868f0..ebbaf21af69 100644
--- a/sys/arch/hppa/conf/Makefile.hppa
+++ b/sys/arch/hppa/conf/Makefile.hppa
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hppa,v 1.102 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.hppa,v 1.103 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -155,4 +155,15 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES
diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386
index adc890e3a9c..ac2cf80aa34 100644
--- a/sys/arch/i386/conf/Makefile.i386
+++ b/sys/arch/i386/conf/Makefile.i386
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.i386,v 1.118 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.i386,v 1.119 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -155,4 +155,15 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES
diff --git a/sys/arch/landisk/conf/Makefile.landisk b/sys/arch/landisk/conf/Makefile.landisk
index e15940181dc..54f49b1a5f9 100644
--- a/sys/arch/landisk/conf/Makefile.landisk
+++ b/sys/arch/landisk/conf/Makefile.landisk
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.landisk,v 1.74 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.landisk,v 1.75 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -147,4 +147,15 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES
diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson
index 9baef0290b5..e470c1bc56e 100644
--- a/sys/arch/loongson/conf/Makefile.loongson
+++ b/sys/arch/loongson/conf/Makefile.loongson
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.loongson,v 1.67 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.loongson,v 1.68 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -161,4 +161,15 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES
diff --git a/sys/arch/luna88k/conf/Makefile.luna88k b/sys/arch/luna88k/conf/Makefile.luna88k
index 16c3c362ad2..a15b0009e5d 100644
--- a/sys/arch/luna88k/conf/Makefile.luna88k
+++ b/sys/arch/luna88k/conf/Makefile.luna88k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.luna88k,v 1.77 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.luna88k,v 1.78 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -150,4 +150,15 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES
diff --git a/sys/arch/macppc/conf/Makefile.macppc b/sys/arch/macppc/conf/Makefile.macppc
index 8ba6a41e8f6..78a88b9b573 100644
--- a/sys/arch/macppc/conf/Makefile.macppc
+++ b/sys/arch/macppc/conf/Makefile.macppc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.macppc,v 1.91 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.macppc,v 1.92 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -147,4 +147,15 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES
diff --git a/sys/arch/octeon/conf/Makefile.octeon b/sys/arch/octeon/conf/Makefile.octeon
index 875e7111aee..b9b5989580b 100644
--- a/sys/arch/octeon/conf/Makefile.octeon
+++ b/sys/arch/octeon/conf/Makefile.octeon
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.octeon,v 1.46 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.octeon,v 1.47 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -161,4 +161,15 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES
diff --git a/sys/arch/sgi/conf/Makefile.sgi b/sys/arch/sgi/conf/Makefile.sgi
index fb462dc609d..b52479e5093 100644
--- a/sys/arch/sgi/conf/Makefile.sgi
+++ b/sys/arch/sgi/conf/Makefile.sgi
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sgi,v 1.91 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.sgi,v 1.92 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -162,4 +162,15 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES
diff --git a/sys/arch/socppc/conf/Makefile.socppc b/sys/arch/socppc/conf/Makefile.socppc
index 9e71a2a91c3..1ce7f2141bd 100644
--- a/sys/arch/socppc/conf/Makefile.socppc
+++ b/sys/arch/socppc/conf/Makefile.socppc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.socppc,v 1.57 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.socppc,v 1.58 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -133,4 +133,15 @@ install-kernel-${MACHINE_NAME}:
mv /nbsd /bsd
.endif
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES
diff --git a/sys/arch/sparc64/conf/Makefile.sparc64 b/sys/arch/sparc64/conf/Makefile.sparc64
index f889bbc42b3..2b527408341 100644
--- a/sys/arch/sparc64/conf/Makefile.sparc64
+++ b/sys/arch/sparc64/conf/Makefile.sparc64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sparc64,v 1.94 2017/09/12 08:23:42 mpi Exp $
+# $OpenBSD: Makefile.sparc64,v 1.95 2017/09/28 16:16:34 patrick Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -144,4 +144,15 @@ newinstall:
install: update-link newinstall
+# pull in the dependency information
+.ifnmake clean
+. for o in ${SYSTEM_OBJ:Ngap.o} assym.h
+. if exists(${o:R}.d)
+. include "${o:R}.d"
+. elif exists($o)
+ .PHONY: $o
+. endif
+. endfor
+.endif
+
%RULES