Include board and config headers in common.h

This ensures they get included everywhere, and fixes a common bug
where we forget one of them and then code which is supposed to be

BUG=none
TEST=build the code

Change-Id: Ic9208f946a3aea4b0b08f546f1919602befa76d4
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/26365
This commit is contained in:
Randall Spangler
2012-06-28 16:25:12 -07:00
committed by Gerrit
parent 3d632987cc
commit 1448b7642e

View File

@@ -18,6 +18,15 @@
#define __packed __attribute__((packed))
#endif
/*
* Include board and core configs, since those hold the CONFIG_ constants for a
* given configuration. This guarantees they get included everywhere, and
* fixes a fairly common bug where we gate out code with #ifndef
* CONFIG_SOMETHING and but forget to include both of these.
*/
#include "board.h"
#include "config.h"
/* List of common error codes that can be returned */
enum ec_error_list {
/* Success - no error */