diff options
author | David Hendricks <dhendrix@chromium.org> | 2016-07-15 17:27:44 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-07-22 15:36:05 -0700 |
commit | 29ef0536d86f1ac54149f6c1940dfb47d693fc99 (patch) | |
tree | 0d80e18a9c6db9447c17e74b00741fb59dc20d76 | |
parent | 1dc78318ba55ca30285570e2254d182fa4cb693a (diff) | |
download | chrome-ec-29ef0536d86f1ac54149f6c1940dfb47d693fc99.tar.gz |
reef: Introduce IS_PROTO hack
This will be used to hack around code that only works on proto.
The earlier method of attempting to use board ID to determine
codepath worked to a limited extent, but fell short due to pin
swappings. So the dream of having a single binary that would work
on multiple board revisions died, and now if someone wants to build
for an old proto board they need to set this #define to 1.
BUG=chrome-os-partner:54947
BRANCH=none
TEST=tested with upcoming patches in this series
Change-Id: I5468c252e5401d69b108c75fa00b3dfbbcf77c22
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/360949
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | board/reef/board.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/reef/board.h b/board/reef/board.h index 5f1e1b4a09..7831c90dfb 100644 --- a/board/reef/board.h +++ b/board/reef/board.h @@ -8,6 +8,9 @@ #ifndef __CROS_EC_BOARD_H #define __CROS_EC_BOARD_H +/* FIXME: Gross hack. Remove it once proto boards are obsolete. */ +#define IS_PROTO 1 + /* * Allow dangerous commands. * TODO: Remove this config before production. |