From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Stuebner Date: Mon, 27 Mar 2017 21:39:35 +0200 Subject: [U-Boot] [PATCH 1/3] Makefile: Correct dependency race condition with TPL In-Reply-To: <20170326233817.8834-2-sjg@chromium.org> References: <20170326233817.8834-1-sjg@chromium.org> <20170326233817.8834-2-sjg@chromium.org> Message-ID: <3988036.51mveJSmfW@phil> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Am Sonntag, 26. M=C3=A4rz 2017, 17:38:15 CEST schrieb Simon Glass: > At present we sometimes see the following build error when building on a > machine with multiple cores. >=20 > +make[2]: *** No rule to make target 'dts/dt.dtb', needed by 'tpl/u-boot-= tpl.dtb'. Stop. >=20 > Add a dependency to correct this. >=20 > Signed-off-by: Simon Glass Fixes the build of rk3188-rock board using buildman for me with more than one job, which failed very reliable before, so Tested-by: Heiko Stuebner > --- >=20 > Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/Makefile b/Makefile > index 1001bc5a7b..5e82b78ade 100644 > --- a/Makefile > +++ b/Makefile > @@ -1351,7 +1351,8 @@ spl/u-boot-spl.sfp: spl/u-boot-spl > spl/boot.bin: spl/u-boot-spl > @: > =20 > -tpl/u-boot-tpl.bin: tools prepare > +tpl/u-boot-tpl.bin: tools prepare \ > + $(if $(CONFIG_OF_SEPARATE)$(CONFIG_SPL_OF_PLATDATA),dts/dt.dtb) > $(Q)$(MAKE) obj=3Dtpl -f $(srctree)/scripts/Makefile.spl all > =20 > TAG_SUBDIRS :=3D $(patsubst %,$(srctree)/%,$(u-boot-dirs) include) >=20