Skip to content

Commit

Permalink
scripts/Makefile.spl: Use 'sort' in SHRUNK_ARCH_DTB rule
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
  • Loading branch information
trini committed Apr 10, 2024
1 parent 278c644 commit e8ff287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Makefile.spl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e8ff287

Please sign in to comment.