]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
kbuild: fix a bug in regeneration of linker scripts
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 9 Apr 2014 11:10:43 +0000 (20:10 +0900)
committerTom Rini <trini@ti.com>
Fri, 11 Apr 2014 14:08:42 +0000 (10:08 -0400)
commit395e60cdc292dc0183c6867d34b43f14a373df55
tree9812385a67c59263cbe9d248129cf28429f344e8
parent519fdde9e6a6ebce7dc743b4f5621503d25b7a45
kbuild: fix a bug in regeneration of linker scripts

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>
Makefile
spl/Makefile