Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2019 22:49:41 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r345351 - head/sys/conf
Message-ID:  <201903202249.x2KMnfA5090749@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Wed Mar 20 22:49:41 2019
New Revision: 345351
URL: https://svnweb.freebsd.org/changeset/base/345351

Log:
  Build common kernel dependencies before modules.
  
  This ensures files like genassym.o and awk/mfiles are generated before
  descending into the modules build.  It may also allow some module builds
  to not recreate files that are already present in the KERNBUILDDIR.
  
  This fixes a rare build race where genassym.o is missing and assym.inc
  is empty.
  
  More work is planned around this to reduce some redundant dependency
  generation in modules.
  
  PR:		233339
  MFC after:	2 weeks
  Reported by:	markj

Modified:
  head/sys/conf/kern.post.mk

Modified: head/sys/conf/kern.post.mk
==============================================================================
--- head/sys/conf/kern.post.mk	Wed Mar 20 21:48:43 2019	(r345350)
+++ head/sys/conf/kern.post.mk	Wed Mar 20 22:49:41 2019	(r345351)
@@ -140,6 +140,8 @@ kernel-obj:
 
 .if !defined(NO_MODULES)
 modules: modules-all
+modules-depend: beforebuild
+modules-all: beforebuild
 
 .if !defined(NO_MODULES_OBJ)
 modules-all modules-depend: modules-obj



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903202249.x2KMnfA5090749>