U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] File name substitution in linker scripts
@ 2009-10-26 14:49 Stefan Roese
  2009-10-26 15:00 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Roese @ 2009-10-26 14:49 UTC (permalink / raw)
  To: u-boot

I'm wondering if and how it's possible to use a "variable" file name for 
inclusion in a linker script. Reason for this is the consolidation of the 
ppc4xx linker scripts, where some boards (PPC440) include a board specific 
file (e.g. board/amcc/canyonlands/init.o) into the section "bootpg":

  .bootpg RESET_VECTOR_ADDRESS - 0xffc :
  {
    cpu/ppc4xx/start.o	(.bootpg)
    board/amcc/canyonlands/init.o	(.bootpg)
  }

Is there a way to write something like this:

  .bootpg RESET_VECTOR_ADDRESS - 0xffc :
  {
    cpu/ppc4xx/start.o	(.bootpg)
    board/$(BOARDDIR)/init.o	(.bootpg)
  }

in a linker script?

Thanks.

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-26 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-26 14:49 [U-Boot] File name substitution in linker scripts Stefan Roese
2009-10-26 15:00 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox