From 4141e85bcd79c0b9b16def710e527f165107b7af Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Thu, 23 Jun 2016 13:53:46 +0900 Subject: [PATCH] kbuild: avoid race between dtbs and dt/dt.dtb targets If the final targets depend on both "dtbs" and "dts/dt.dtb", and -j option is given to the command line, multiple threads descend into the dts/ directory, which causes build error. Signed-off-by: Masahiro Yamada Tested-by: Andreas Dannenberg --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 256d4ff38f..0c47bb66c1 100644 --- a/Makefile +++ b/Makefile @@ -810,7 +810,9 @@ ifeq ($(CONFIG_DM_I2C_COMPAT),y) endif PHONY += dtbs -dtbs dts/dt.dtb: checkdtc u-boot +dtbs: dts/dt.dtb + @: +dts/dt.dtb: checkdtc u-boot $(Q)$(MAKE) $(build)=dts dtbs quiet_cmd_copy = COPY $@ -- 2.39.5