aboutsummaryrefslogtreecommitdiff
path: root/stand/Makefile.amd64
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-12-31 17:15:45 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-12-31 17:15:45 +0000
commitac5f382a9d0a26685b92b49abb845d3b30ea5f91 (patch)
tree6e6eafc883cbf2b51afe399470408d8b0762b64d /stand/Makefile.amd64
parent202aea9c82eaab1c73351d4e971347c4109ef59b (diff)
downloadsrc-ac5f382a9d0a26685b92b49abb845d3b30ea5f91.tar.gz
src-ac5f382a9d0a26685b92b49abb845d3b30ea5f91.zip
stand: properly declare subdir deps or .WAIT, do parallel build
buildworld already runs the stand build in parallel[1], so make it easier to identify ordering issues by properly establishing dependencies or adding .WAIT where needed. Everything in stand/ relies on libsa, either directly or indirectly, because libsa build is where the stand headers get installed and it gets linked in most places. Interpreters depend on their libs, machine dirs usually depend on top-level libs that are getting built and at least one of the interpreter flavors. For i386, order btx/libi386/libfirewire before everything else using a big-ol-.WAIT hammer. btx is the most common dependency, but the others are used sporadically. This seems to be where the race reporting on the mailing list is- AFAICT, the following sequence is happening: 1.) One of the loaders gets built based on stale btx/btxldr 2.) btx/btxldr gets rebuilt 3.) installworld triggers loader rebuild because btx was rebuilt after This seems like the most plausible explanation, as they've verified system time and timestamps. While we're here, let's switch stand/ over to a completely parallel build so we can work out these kinds of issues in isolation rather than in the middle of a larger build. Reviewed by: bdragon, sjg, tsoome Tested by: bdragon (-j1024, no failures, significant speed improvement) Differential Revision: https://reviews.freebsd.org/D23411
Diffstat (limited to 'stand/Makefile.amd64')
-rw-r--r--stand/Makefile.amd644
1 files changed, 4 insertions, 0 deletions
diff --git a/stand/Makefile.amd64 b/stand/Makefile.amd64
index b2b918ebed5b..9ee3649071b2 100644
--- a/stand/Makefile.amd64
+++ b/stand/Makefile.amd64
@@ -2,3 +2,7 @@
S.yes+= userboot
S.yes+= i386
+
+SUBDIR_DEPEND_userboot+= ${INTERP_DEPENDS}
+# These won't get tacked on in an amd64 build
+SUBDIR_DEPEND_i386+= ${LIB32DEPENDS} ${INTERP_DEPENDS}