]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
scripts/Makefile.spl: Use 'sort' in SHRUNK_ARCH_DTB rule
authorTom Rini <trini@konsulko.com>
Tue, 19 Mar 2024 16:51:31 +0000 (12:51 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 10 Apr 2024 15:34:53 +0000 (09:34 -0600)
With configs such as "am64x_evm_a53" or "imx8mp_venice" which list
multiple device trees to build we get a warning such as:
scripts/Makefile.spl:578: target 'spl/dts/freescale/' given more than once in the same rule

If we sort this list first the warning goes away.

Tested-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
scripts/Makefile.spl

index d074ba2350065e44bfb007e4fbc21896160d71c0..60db38d5bdddf7c23c498e060fc11f9f6792ce3e 100644 (file)
@@ -575,7 +575,7 @@ endif
 
 SPL_OF_LIST_TARGETS = $(patsubst %,dts/%.dtb,$(subst ",,$(CONFIG_SPL_OF_LIST)))
 SHRUNK_ARCH_DTB = $(addprefix $(obj)/,$(SPL_OF_LIST_TARGETS))
-$(dir $(SHRUNK_ARCH_DTB)):
+$(sort $(dir $(SHRUNK_ARCH_DTB))):
        $(shell [ -d $@ ] || mkdir -p $@)
 
 .SECONDEXPANSION: