vboot: Remove CHIPSET_PROVIDES_VERSTAGE_MAIN_SYMBOL Kconfig option
commit94d9411415e624f70ba8451886e5b96a1f56b159
authorJulius Werner <jwerner@chromium.org>
Fri, 17 Mar 2017 02:21:51 +0000 (16 19:21 -0700)
committerJulius Werner <jwerner@chromium.org>
Tue, 28 Mar 2017 20:14:03 +0000 (28 22:14 +0200)
treee38a16364600508d41114d7de582cd4445289932
parent1210b41283f70ea2a8b562da940f853442f292ab
vboot: Remove CHIPSET_PROVIDES_VERSTAGE_MAIN_SYMBOL Kconfig option

CHIPSET_PROVIDES_VERSTAGE_MAIN_SYMBOL allows the SoC directory to
provide its own main() symbol that can execute code before the generic
verstage code runs. We have now established in other places (e.g. T210
ramstage) a sort of convention that SoCs which need to run code in any
stage before main() should just override stage_entry() instead. This
patch aligns the verstage with that model and gets rid of the extra
Kconfig option. This also removes the need for aliasing between main()
and verstage(). Like other stages the main verstage code is now just in
main() and can be called from stage_entry().

Change-Id: If42c9c4fbab51fbd474e1530023a30b69495d1d6
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/18978
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins)
src/arch/x86/verstage.c
src/soc/nvidia/tegra124/Kconfig
src/soc/nvidia/tegra124/verstage.c
src/vboot/Kconfig
src/vboot/vboot_common.h
src/vboot/verstage.c