[U-Boot] macro substitution - can someone explain please
David Collier
from_denx_uboot at dexdyne.com
Fri Oct 23 14:25:00 CEST 2009
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
More information about the U-Boot
mailing list