pxe: fix handling of different localboot values
authorRob Herring <rob.herring@calxeda.com>
Mon, 3 Dec 2012 03:00:22 +0000 (21:00 -0600)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 25 Jun 2013 00:07:33 +0000 (19:07 -0500)
commit500f304b6bb8eeb369087a91da2f58a28bf04941
tree54d84d14671f62d1778b461634579ddbfcced4fc
parent23b7194e61997910854f6566c9cad9ea75191f60
pxe: fix handling of different localboot values

Add support for value of -1 For localboot. A value of -1 means return to
u-boot prompt.

The localboot value is often 0, so we need to distinguish the value from
localboot being selected. A value of greater than or equal to 0 means
attempt local boot command.

If localboot is selected, we don't want to try other entries.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
common/cmd_pxe.c