]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Move CONFIG_UPDATE_TFTP code after CONFIG_PREBOOT
authorWolfgang Denk <wd@denx.de>
Thu, 11 Mar 2010 22:56:03 +0000 (23:56 +0100)
committerWolfgang Denk <wd@denx.de>
Thu, 11 Mar 2010 22:56:03 +0000 (23:56 +0100)
commit143cd21fe22e69bf0cdaefd57be98f07ed8f04fa
tree5ec5cad02c97e90ff1c4c2d03b5013ab590e0230
parent1b691bb0c2fa18c9b68f15398ef6c8b9e0c0f3e3
Move CONFIG_UPDATE_TFTP code after CONFIG_PREBOOT

The auto-update feature (CONFIG_UPDATE_TFTP) requires that the env
variable serverip be set for the TFTP access. If DHCP is to be used
to get the serverip env variable, this doesn't work as DHCP happens
after the auto-update attempt has run. A solution is to run DHCP in
PREBOOT, but even this is too late.

To solve this, we move update_tftp() below the PREBOOT stuff.

Signed-off-by: Wolfgang Denk <wd@denx.de>
common/main.c