]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
bootm: Use selected configuration for ramdisk and fdt
authorSimon Glass <sjg@chromium.org>
Thu, 11 Jul 2013 06:08:10 +0000 (23:08 -0700)
committerTom Rini <trini@ti.com>
Fri, 12 Jul 2013 14:32:39 +0000 (10:32 -0400)
commitf320a4d845ab160dd539888280b6452deebdb3d0
tree82ab3ab1b74dcfa79dcd7de4acf0d3f7c27a3e0f
parent7af26b1669b75a02e1cfaa68ac526897e790af84
bootm: Use selected configuration for ramdisk and fdt

If a specific configuraion is selected by the bootm command, e.g. with
'bootm 84000000#recoveryconf' we must honour this for not just the kernel,
but also the ramdisk and FDT.

In the conversion to using a common fit_image_load() function for loading
images from FITs (commits a51ec63 and 53f375f) this feature was lost.
Reinstate it by passing the selected configuration back from
fit_image_load() to boot_get_kernel(), then use this configuration
(which is stored in images->fit_uname_cfg) in both boot_get_ramdisk()
and boot_get_fdt().

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