]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Makefile: copy SPL_FIT_SOURCE in build directory
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 23 Apr 2020 07:39:08 +0000 (09:39 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 27 Apr 2020 18:55:29 +0000 (14:55 -0400)
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 <patrick.delaunay@st.com>
Tested-by: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
Makefile

index b8a4b5058a00f92d061e9823f6842a40273dbb26..863ddd95286769721abdf86299d362439f91ec9c 100644 (file)
--- 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