Since we have many software running on QM/QXP, it is better to print their
commit ids in u-boot to know their versions.
This patch enables the CONFIG_ARCH_MISC_INIT. In arch_misc_init to gets the
commit ids for SCFW and ATF via their APIs and get the commit for imx-mkimage
at the end of u-boot.bin loading address.
Once the commit ids are acquired, show them in console like:
BuildInfo: SCFW 45c567e8, IMX-MKIMAGE cc994971, ATF 0a9efa7
and set them to environment variables like:
If old software are running which does not support provide commit it, the patch
use 0 instead.
Signed-off-by: Ye Li <email@example.com>
Reviewed-by: Peng Fan <firstname.lastname@example.org>
(cherry picked from commit 4f699dbc3102814f47b9109bd5c52433573e3afe)