summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-03-04 16:54:31 +0000
committerjhb <jhb@FreeBSD.org>2008-03-04 16:54:31 +0000
commitecb193faa4d2b7a848279cc57e6917a31a49d29e (patch)
tree42c63701dbb5eb85c3c9c41b49021ecee8072bc1 /sys
parente66572500ece326a2a61fad138bcca7e5d684477 (diff)
downloadFreeBSD-src-ecb193faa4d2b7a848279cc57e6917a31a49d29e.zip
FreeBSD-src-ecb193faa4d2b7a848279cc57e6917a31a49d29e.tar.gz
Force an explicit dependency on opt_global.h for all module object files
when building modules as part of a kernel build just as we do for kernel object files. MFC after: 1 week Reported by: kmacy, kris Reviewed by: ru
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/kmod.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 1bde99f..a795728 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -422,6 +422,9 @@ acpi_quirks.h: @/tools/acpi_quirks2h.awk @/dev/acpica/acpi_quirks
.if !empty(SRCS:Massym.s)
CLEANFILES+= assym.s genassym.o
assym.s: genassym.o
+.if defined(KERNBUILDDIR)
+genassym.o: opt_global.h
+.endif
.if !exists(@)
assym.s: @
.else
@@ -439,6 +442,10 @@ genassym.o: @ machine ${SRCS:Mopt_*.h}
lint: ${SRCS}
${LINT} ${LINTKERNFLAGS} ${CFLAGS:M-[DILU]*} ${.ALLSRC:M*.c}
+.if defined(KERNBUILDDIR)
+${OBJS}: opt_global.h
+.endif
+
.include <bsd.dep.mk>
cleandepend: cleanilinks
OpenPOWER on IntegriCloud