diff mbox series

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

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

Commit Message

Masahiro Yamada April 16, 2020, 4:38 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>
---

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

Comments

Simon Glass April 19, 2020, 11:37 p.m. UTC | #1
On Wed, 15 Apr 2020 at 22:39, Masahiro Yamada <masahiroy at kernel.org> 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>
> ---
>
>  scripts/Makefile.spl | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>
diff mbox series

Patch

diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index 314b02ba07..98c04bbbfc 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