Skip to contentSkip to conversation

regenerating u-boot.lds

RFC Mike Frysinger 2 participants 2 messages Feb 11, 2010

lore
Share & tools
lore
#0 lore raw

the current u-boot.lds target in u-boot depends only on the source file (typically a u-boot.lds.S). this works fine if someone changes the u- boot.lds.S file -- it'll force a regeneration. however, if the u-boot.lds.S file includes u-boot headers such as board config options via config.h, there is no dependency expressed which will cause the file to be regenerated. looking through the build system, i'm not sure there is a way to easily express this. considering the u-boot.lds is trivial to generate (it only gets preprocessed), and every make forces a relink of the final u-boot binary, i wonder if we should just label the top level u-boot.lds as phony ? +.PHONY: $(obj)u-boot.lds
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100211/348e88e6/attachment.pgp

#1 lore raw

Dear Mike Frysinger,

Quoted 6 lines · In message <[email protected]> you wrote:

the current u-boot.lds target in u-boot depends only on the source file (typically a u-boot.lds.S). this works fine if someone changes the u- boot.lds.S file -- it'll force a regeneration. however, if the u-boot.lds.S file includes u-boot headers such as board config options via config.h, there is no dependency expressed which will cause the file to be regenerated.

I see. Well, this obviously means that appropriate dependeny generation and checking should be added.

Quoted 5 lines

looking through the build system, i'm not sure there is a way to easily express this. considering the u-boot.lds is trivial to generate (it only gets preprocessed), and every make forces a relink of the final u-boot binary, i wonder if we should just label the top level u-boot.lds as phony ? +.PHONY: $(obj)u-boot.lds

No, please don't.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Without freedom of choice there is no creativity.
	-- Kirk, "The return of the Archons", stardate 3157.4