From: Holger Brunck <holger.brunck@keymile.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] using ${var} with env import
Date: Wed, 30 Mar 2011 10:20:04 +0200 [thread overview]
Message-ID: <4D92E7B4.9010305@keymile.com> (raw)
Hi all,
I am using env import -t to import environment variables from a textfile.
My simple textfile is:
fdt_file=${hostname}/${hostname}.dtb
I import the file with:
=> tftp 200000 scripts/my_environ.txt
=> env import -t 200000 ${filesize}
Now when I print the variable I get:
=> print fdt_file
fdt_file=${hostname}/${hostname}.dtb
hostname is defined as:
=> print hostname
hostname=mgcoge
I see that the ${hostname} for my fdt_file variable is not replaced. If I do
this with setenv:
=> setenv fdt_file_2 ${hostname}/${hostname}.dtb
=> print fdt_file_2
fdt_file_2=mgcoge/mgcoge.dtb
My variable is replaced.
Is the usage of ${var} in the textfiles not possible? Or is there a way to solve
this problem?
I try to use this textfile for different boards and can therfore not specify
hostname in advance in the textfile.
Best regards
Holger Brunck
next reply other threads:[~2011-03-30 8:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-30 8:20 Holger Brunck [this message]
2011-03-30 12:57 ` [U-Boot] using ${var} with env import Wolfgang Denk
2011-03-30 15:41 ` Holger Brunck
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=4D92E7B4.9010305@keymile.com \
--to=holger.brunck@keymile.com \
--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.