From 0015e6defe66022b38c4fe0e2c793728ab2c3cdd Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Thu, 23 Apr 2020 09:39:08 +0200 Subject: [PATCH] Makefile: copy SPL_FIT_SOURCE in build directory Copy the .its source file selected by CONFIG_SPL_FIT_SOURCE in builddir and in a file named "u-boot.its". This patch avoid compilation issue when CONFIG_SPL_FIT_SOURCE is used and KBUILD_OUTPUT is defined, in buildman for example. Signed-off-by: Patrick Delaunay Tested-by: Marek Vasut Acked-by: Marek Vasut --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b8a4b5058a..863ddd9528 100644 --- a/Makefile +++ b/Makefile @@ -1322,7 +1322,9 @@ endif # Boards with more complex image requirements can provide an .its source file # or a generator script ifneq ($(CONFIG_SPL_FIT_SOURCE),"") -U_BOOT_ITS = $(subst ",,$(CONFIG_SPL_FIT_SOURCE)) +U_BOOT_ITS := u-boot.its +$(U_BOOT_ITS): $(subst ",,$(CONFIG_SPL_FIT_SOURCE)) + $(call if_changed,copy) else ifneq ($(CONFIG_SPL_FIT_GENERATOR),"") U_BOOT_ITS := u-boot.its -- 2.39.5