diff options
author | Jon Loeliger <jon.loeliger@oracle.com> | 2014-04-15 16:09:37 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-04-18 16:14:16 -0400 |
commit | a8b993eb81c142a439c24b871a2317f765fe5397 (patch) | |
tree | 8667c3ece08c9d3ca359fc5f2e9e07561b637bdb /Makefile | |
parent | e0ba9299823b985b6b707516e4dc0b331be9e7a2 (diff) | |
download | u-boot-imx-a8b993eb81c142a439c24b871a2317f765fe5397.zip u-boot-imx-a8b993eb81c142a439c24b871a2317f765fe5397.tar.gz u-boot-imx-a8b993eb81c142a439c24b871a2317f765fe5397.tar.bz2 |
build: Use filechk rules to create and update u-boot.lds
Prior to this patch, the top-level linker script u-boot.lds
used a simple $(call if_changed) check when generated.
That mechanism misses cases where a possible include file
change induces a change in the u-boot.lds too.
This patch converts it to a stronger check using ($call filechk)
that will also notice differences in file contents and
will catch changes due to pre-processing as well.
Signed-off-by: Jon Loeliger <jon.loeliger@oracle.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1093,12 +1093,13 @@ depend dep: @echo '*** Warning: make $@ is unnecessary now.' # --------------------------------------------------------------------------- -quiet_cmd_cpp_lds = LDS $@ -cmd_cpp_lds = $(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) -ansi \ - -D__ASSEMBLY__ -x assembler-with-cpp -P -o $@ $< +define filechk_ubootlds + ($(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) -ansi \ + -D__ASSEMBLY__ -x assembler-with-cpp -P -o - -) +endef u-boot.lds: $(LDSCRIPT) prepare FORCE - $(call if_changed_dep,cpp_lds) + $(call filechk,ubootlds) PHONY += nand_spl nand_spl: prepare |