common: spl_fit: Default to IH_OS_U_BOOT if FIT_IMAGE_TINY enabled
authorAbel Vesa <abel.vesa@nxp.com>
Tue, 12 Mar 2019 08:34:31 +0000 (08:34 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 22 Mar 2019 16:15:05 +0000 (12:15 -0400)
commitcf8dcc5d02c32173b74bf1b7600dd2b990a90b13
tree863ca109e40c3d7861182e8f8ed571f0a474abb7
parentef331e3685fed584708055ad81804c6e4a1f64e2
common: spl_fit: Default to IH_OS_U_BOOT if FIT_IMAGE_TINY enabled

If FIT_IMAGE_TINY is enabled, spl_fit_image_get_os returns -ENOTSUPP.
In this case, we should default to IH_OS_U_BOOT not to IH_OS_INVALID.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Tested-by: Fabio Estevam <festevam@gmail.com>
common/spl/spl_fit.c