diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-06-12 22:57:36 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-06-12 22:57:36 +0000 |
commit | 600576b43d7f76adc49913a7a7dd21e318b063cf (patch) | |
tree | 58dda54c79c37a339ce3cfbdf6d03fdbf413b81c /flashrom.c | |
parent | 7ba3d6ce160ed46913a63283e0b8822b80985044 (diff) | |
download | flashrom-600576b43d7f76adc49913a7a7dd21e318b063cf.tar.gz flashrom-600576b43d7f76adc49913a7a7dd21e318b063cf.tar.bz2 flashrom-600576b43d7f76adc49913a7a7dd21e318b063cf.zip |
Add selfcheck_board_enables()
Check for NULL termination of the array, that each board has the two
main PCI ID sets defined, that coreboot vendor and model fields are either
both set or unset, and that at least either an enable function or a max
decode size is available.
Corresponding to flashrom svn r1821.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c index c9e0d016f..8e5d36393 100644 --- a/flashrom.c +++ b/flashrom.c @@ -1758,6 +1758,10 @@ int selfcheck(void) } } +#if CONFIG_INTERNAL == 1 + ret |= selfcheck_board_enables(); +#endif + /* TODO: implement similar sanity checks for other arrays where deemed necessary. */ return ret; } |