From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] macro substitution - can someone explain please
Date: Mon, 26 Oct 2009 04:13:13 -0400 [thread overview]
Message-ID: <200910260413.14473.vapier@gentoo.org> (raw)
In-Reply-To: <memo.20091023132522.2092T@postmaster+dexdyne.com.cix.co.uk>
On Friday 23 October 2009 08:25:00 David Collier wrote:
> If I put the following line in my board.h file
>
> #define CONFIG_RAMBOOTCOMMAND \
> "ping ${serverip} && tftp && bootm ${fileaddr}"
start with the binary. run `strings` on your u-boot.bin (or whatever you're
using) and see what ramboot is set to.
> then when I do PRINTENV I see
>
> ramboot=ping ${serverip} && tftp && bootm 0x10400000
>
> so clearly at some point the text ${fileaddr} has been substituted,
> whereas ${serverip} hasn't
>
> If I retype the line at the command prompt, the ${fileaddr} appears as I
> wished, so it must be happening diring compile and so on.
i doubt variable expansion is happening during compile. it isnt like gcc
knows how to expand shell variables in C code.
-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/20091026/b142f35c/attachment.pgp
prev parent reply other threads:[~2009-10-26 8:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-23 12:25 [U-Boot] macro substitution - can someone explain please David Collier
2009-10-26 7:44 ` javier Martin
2009-10-26 8:11 ` Mike Frysinger
2009-10-26 8:13 ` Mike Frysinger [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=200910260413.14473.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox