U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] macro substitution - can someone explain please
@ 2009-10-23 12:25 David Collier
  2009-10-26  7:44 ` javier Martin
  2009-10-26  8:13 ` Mike Frysinger
  0 siblings, 2 replies; 4+ messages in thread
From: David Collier @ 2009-10-23 12:25 UTC (permalink / raw)
  To: u-boot

If I put the following line in my board.h file

#define CONFIG_RAMBOOTCOMMAND						\
  "ping ${serverip} && tftp && bootm ${fileaddr}"

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.

Can anyone explain, and/or can anyone tell me how to get the effect I
wanted.
  
  
David Collier

www.dexdyne.com

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox