[Buildroot] [PATCH 1/1] package/Makefile.in: set .NOTPARALLEL for MAKE1

James Hilliard james.hilliard1 at gmail.com
Sat Oct 15 00:56:11 UTC 2022


Make 4.4 introduces a shuffle mode which randomizes prerequisites
in order to better flush out issues with parallel builds, as this
mode randomizes prerequisites even when using -j1 builds we must
instead explicitely mark parallel incompatible builds using the
.NOTPARALLEL special target which disables prerequisites
randomization when running in shuffle mode.

Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
---
 package/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/Makefile.in b/package/Makefile.in
index 43d214bcbe..2327849a1f 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -17,7 +17,7 @@ else
 PARALLEL_JOBS := $(BR2_JLEVEL)
 endif
 
-MAKE1 := $(HOSTMAKE) -j1
+MAKE1 := $(HOSTMAKE) --eval .NOTPARALLEL:
 override MAKE = $(HOSTMAKE) \
 	$(if $(findstring j,$(filter-out --%,$(MAKEFLAGS))),,-j$(PARALLEL_JOBS))
 
-- 
2.34.1




More information about the buildroot mailing list