Edward O'Callaghan has uploaded this change for review.

View Change

programmer.h: Allow compilation without dummyflasher

Fix a regression introduced when variable sized chips was
added to dummyflasher that prevented flashrom from compiling
without dummyflasher. The purposed solution is neither ideal
nor egregious however there is no clear way to handle this
specialiation of the probe function pointer.

BUG=none
BRANCH=none
TEST=builds

Change-Id: I5d1d42628519861c9cd28c96d5c49fa4f6b229ef
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
---
M programmer.h
1 file changed, 4 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/67/56467/1
diff --git a/programmer.h b/programmer.h
index 61673a8..d1c5ab3 100644
--- a/programmer.h
+++ b/programmer.h
@@ -211,6 +211,10 @@
void internal_sleep(unsigned int usecs);
void internal_delay(unsigned int usecs);

+#if CONFIG_DUMMY == 0
+int probe_variable_size(struct flashctx *flash) { return 1; }
+#endif
+
#if CONFIG_INTERNAL == 1
/* board_enable.c */
int selfcheck_board_enables(void);

To view, visit change 56467. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I5d1d42628519861c9cd28c96d5c49fa4f6b229ef
Gerrit-Change-Number: 56467
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-MessageType: newchange