From ecb193faa4d2b7a848279cc57e6917a31a49d29e Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 4 Mar 2008 16:54:31 +0000 Subject: 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 --- sys/conf/kmod.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys') 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 cleandepend: cleanilinks -- cgit v1.1