]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
spl: fix calling "spl export .." more than once
authorHeiko Schocher <hs@denx.de>
Tue, 24 Feb 2015 06:04:38 +0000 (07:04 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:24:11 +0000 (14:24 +0200)
commit71f9a5ea9f893353f24ad0357e2aeb56f8f1d470
tree80a95c7e3c33407ae77b28a82cc3c97b06049a8c
parent06c3bf400997f308ecabd276b1b8e7cb833db0e7
spl: fix calling "spl export .." more than once

running "spl export ..." more than once fails with:

Trying to execute a command out of order
Trying to execute a command out of order
Trying to execute a command out of order
Trying to execute a command out of order
Trying to execute a command out of order
Trying to execute a command out of order
ERROR prep subcommand failed!
Subcommand failed

reason is commmit:
35fc84fa1f: Refactor the bootm command to reduce code duplication

It used "state != BOOTM_STATE_START" but state is a bitfield, so
check if the bit BOOTM_STATE_START is not set. With this fix,
"spl export ..." can called more than once ...

Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/cmd_bootm.c