From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] File name substitution in linker scripts
Date: Mon, 26 Oct 2009 16:00:00 +0100 [thread overview]
Message-ID: <20091026150000.4B6A728B9B@gemini.denx.de> (raw)
In-Reply-To: <200910261549.05545.sr@denx.de>
Dear Stefan Roese,
In message <200910261549.05545.sr@denx.de> you wrote:
> 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":
All linker scripts are run through the C preprocessor...
> .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)
> }
Eventually
board/CONFIG_HOSTNAME/init.o (.bootpg)
might work (untested).
Best regards,
Wolfgang Denk
--
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
"...this does not mean that some of us should not want, in a rather
dispassionate sort of way, to put a bullet through csh's head."
- Larry Wall in <1992Aug6.221512.5963@netlabs.com>
prev parent reply other threads:[~2009-10-26 15:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-26 14:49 [U-Boot] File name substitution in linker scripts Stefan Roese
2009-10-26 15:00 ` Wolfgang Denk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091026150000.4B6A728B9B@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.