]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Refactor the bootm command to reduce code duplication
authorSimon Glass <sjg@chromium.org>
Tue, 11 Jun 2013 18:14:47 +0000 (11:14 -0700)
committerTom Rini <trini@ti.com>
Wed, 26 Jun 2013 14:18:56 +0000 (10:18 -0400)
commit35fc84fa1ff51e15ecd3e464dac87eb105ffed30
tree3f0340784cc9bb7f21fc38d37152897248a75db1
parent983c72f479173bced296f7292b4a9fbef9d17688
Refactor the bootm command to reduce code duplication

At present the bootm code is mostly duplicated for the plain 'bootm'
command and its sub-command variant. This makes the code harder to
maintain and means that changes must be made to several places.

Introduce do_bootm_states() which performs selected portions of the bootm
work, so that both plain 'bootm' and 'bootm <sub_command>' can use the
same code.

Additional duplication exists in bootz, so tidy that up as well. This
is not intended to change behaviour, apart from minor fixes where the
previously-duplicated code missed some chunks of code.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cmd_bootm.c
include/image.h