Refactor the -p internal:mainboard handling
This patch gets rid of some global variables and makes lots of bits along
the code path that control the board enable execution more generic and
clearer. From now on flashrom aborts on a few more occasions that should be
safer for the user. For example it aborts if the enable function for the
specified mainboard (enable) can not be found.
Parts of the board_match_cbname refactoring were done by Carl-Daniel.
Corresponding to flashrom svn r1577.
Signed-off-by: Stefan Tauner <firstname.lastname@example.org>
Signed-off-by: Carl-Daniel Hailfinger <email@example.com>
Acked-by: Carl-Daniel Hailfinger <firstname.lastname@example.org>
6 files changed