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>
This commit is contained in:
David Hendricks
2016-07-15 17:27:44 -07:00
committed by chrome-bot
parent 1dc78318ba
commit 29ef0536d8

View File

@@ -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.