]> git.baikalelectronics.ru Git - uboot.git/commit
net: Read bootfile from env on netboot_common()
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 4 Jul 2018 00:36:42 +0000 (19:36 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 26 Jul 2018 19:08:20 +0000 (14:08 -0500)
commit1b1400db4d34cf11db778083bee4794c98e4d030
tree2c70d2c73a657c2df736b335b32fd77a2b2bc8ff
parentb33e06b660726a93c15e0f05f8c9418feeb3ce1c
net: Read bootfile from env on netboot_common()

Instead of depending on a env callback for bootfile, read it explicitly.

We do this because the bootfile can be specified on the command line and
if it is, we will overwrite the internal variable. If a netboot_common()
is called again with no bootfile parameter, we want to use the one in
the environment.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
cmd/net.c
net/net.c