diff mbox series

[v2,1/3] kbuild: add FORCE to dependency of $(obj)/dts/dt-platdata.o

Message ID 20200417072137.801234-2-masahiroy@kernel.org
State Accepted
Commit c3da3f58086b30d0d435a002781121c1e820c7da
Headers show
Series support separate asm-offsets.h for SPL and TPL | expand

Commit Message

Masahiro Yamada April 17, 2020, 7:21 a.m. UTC
if_changed must have FORCE as a prerequisite.

Add $(obj)/dts/dt-platdata.o to 'targets' so that the corresponding
.cmd file is included.

Signed-off-by: Masahiro Yamada <masahiroy at kernel.org>
---

Changes in v2: None

 scripts/Makefile.spl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Tom Rini April 26, 2020, 11:27 a.m. UTC | #1
On Fri, Apr 17, 2020 at 04:21:35PM +0900, Masahiro Yamada wrote:

> if_changed must have FORCE as a prerequisite.
> 
> Add $(obj)/dts/dt-platdata.o to 'targets' so that the corresponding
> .cmd file is included.
> 
> Signed-off-by: Masahiro Yamada <masahiroy at kernel.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index 5384f21278..4c2c0567c5 100644
--- a/scripts/Makefile.spl
+++ b/scripts/Makefile.spl
@@ -307,10 +307,11 @@  quiet_cmd_dtoch = DTOC H  $@
 cmd_dtoch = $(pythonpath) $(srctree)/tools/dtoc/dtoc -d $(obj)/$(SPL_BIN).dtb -o $@ struct
 
 quiet_cmd_plat = PLAT    $@
-cmd_plat = $(CC) $(c_flags) -c $< -o $@
+cmd_plat = $(CC) $(c_flags) -c $< -o $(filter-out $(PHONY),$@)
 
+targets += $(obj)/dts/dt-platdata.o
 $(obj)/dts/dt-platdata.o: $(obj)/dts/dt-platdata.c \
-		include/generated/dt-structs-gen.h
+		include/generated/dt-structs-gen.h FORCE
 	$(call if_changed,plat)
 
 PHONY += dts_dir