From 29ef0536d86f1ac54149f6c1940dfb47d693fc99 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Fri, 15 Jul 2016 17:27:44 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/360949 Reviewed-by: Shawn N --- board/reef/board.h | 3 +++ 1 file changed, 3 insertions(+) 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.