* [U-Boot] [PATCH] kbuild: fix a bug in regeneration of linker scripts
@ 2014-04-09 11:10 Masahiro Yamada
2014-04-09 11:20 ` Andreas Bießmann
2014-04-11 20:43 ` [U-Boot] " Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Masahiro Yamada @ 2014-04-09 11:10 UTC (permalink / raw)
To: u-boot
In some use cases, SPL linker script was not updated even when
it should be.
For instance,
$ make tricoder_config all
[ build complete ]
... modify include/configs/tricoder.h
$ make
spl/u-boot-spl.lds should be updated in this case, but it wasn't.
To fix this problem, linker scripts generation should be handled
by $(call if_changed_dep,...) rather than by $(call if_changed,...).
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Reported-by: Andreas Bie?mann <andreas.devel@googlemail.com>
---
Makefile | 6 +++---
spl/Makefile | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index b807e5c..b2937e9 100644
--- a/Makefile
+++ b/Makefile
@@ -1053,11 +1053,11 @@ depend dep:
# ---------------------------------------------------------------------------
quiet_cmd_cpp_lds = LDS $@
-cmd_cpp_lds = $(CPP) $(cpp_flags) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ \
- -x assembler-with-cpp -P -o $@ $<
+cmd_cpp_lds = $(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) -ansi \
+ -D__ASSEMBLY__ -x assembler-with-cpp -P -o $@ $<
u-boot.lds: $(LDSCRIPT) prepare FORCE
- $(call if_changed,cpp_lds)
+ $(call if_changed_dep,cpp_lds)
PHONY += nand_spl
nand_spl: prepare
diff --git a/spl/Makefile b/spl/Makefile
index 9f5dbf4..6fec252 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -231,11 +231,11 @@ $(u-boot-spl-dirs):
$(Q)$(MAKE) $(build)=$@
quiet_cmd_cpp_lds = LDS $@
-cmd_cpp_lds = $(CPP) $(cpp_flags) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ \
- -x assembler-with-cpp -P -o $@ $<
+cmd_cpp_lds = $(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) -ansi \
+ -D__ASSEMBLY__ -x assembler-with-cpp -P -o $@ $<
$(obj)/u-boot-spl.lds: $(LDSCRIPT) FORCE
- $(call if_changed,cpp_lds)
+ $(call if_changed_dep,cpp_lds)
# read all saved command lines
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] kbuild: fix a bug in regeneration of linker scripts
2014-04-09 11:10 [U-Boot] [PATCH] kbuild: fix a bug in regeneration of linker scripts Masahiro Yamada
@ 2014-04-09 11:20 ` Andreas Bießmann
2014-04-11 20:43 ` [U-Boot] " Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Andreas Bießmann @ 2014-04-09 11:20 UTC (permalink / raw)
To: u-boot
On 04/09/2014 01:10 PM, Masahiro Yamada wrote:
> In some use cases, SPL linker script was not updated even when
> it should be.
>
> For instance,
>
> $ make tricoder_config all
> [ build complete ]
> ... modify include/configs/tricoder.h
> $ make
>
> spl/u-boot-spl.lds should be updated in this case, but it wasn't.
>
> To fix this problem, linker scripts generation should be handled
> by $(call if_changed_dep,...) rather than by $(call if_changed,...).
>
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
> Reported-by: Andreas Bie?mann <andreas.devel@googlemail.com>
Tested-by: Andreas Bie?mann <andreas.devel@googlemail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] kbuild: fix a bug in regeneration of linker scripts
2014-04-09 11:10 [U-Boot] [PATCH] kbuild: fix a bug in regeneration of linker scripts Masahiro Yamada
2014-04-09 11:20 ` Andreas Bießmann
@ 2014-04-11 20:43 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2014-04-11 20:43 UTC (permalink / raw)
To: u-boot
On Wed, Apr 09, 2014 at 08:10:43PM +0900, Masahiro Yamada wrote:
> In some use cases, SPL linker script was not updated even when
> it should be.
>
> For instance,
>
> $ make tricoder_config all
> [ build complete ]
> ... modify include/configs/tricoder.h
> $ make
>
> spl/u-boot-spl.lds should be updated in this case, but it wasn't.
>
> To fix this problem, linker scripts generation should be handled
> by $(call if_changed_dep,...) rather than by $(call if_changed,...).
>
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
> Reported-by: Andreas Bie?mann <andreas.devel@googlemail.com>
> Tested-by: Andreas Bie?mann <andreas.devel@googlemail.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140411/1ec3363f/attachment.pgp>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-11 20:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-09 11:10 [U-Boot] [PATCH] kbuild: fix a bug in regeneration of linker scripts Masahiro Yamada
2014-04-09 11:20 ` Andreas Bießmann
2014-04-11 20:43 ` [U-Boot] " Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox