From b78ccada9a01f54a60993dfc2c618201d31df9ad Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Tue, 22 Apr 2014 10:52:31 -0700 Subject: [PATCH] chromeos: Add empty functions when CONFIG_CHROMEOS is disabled This allows the chromeos header and functions to be included without needing to guard with #if CONFIG_CHROMEOS. BUG=chrome-os-partner:28234 BRANCH=None TEST=emerge-rambi coreboot Change-Id: I523813dc9521d533242ae2d2bc822eb8b0ffa5e2 Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/196265 Reviewed-by: Aaron Durbin --- src/vendorcode/google/chromeos/chromeos.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/vendorcode/google/chromeos/chromeos.h b/src/vendorcode/google/chromeos/chromeos.h index 5d09c669e8..425077d09a 100644 --- a/src/vendorcode/google/chromeos/chromeos.h +++ b/src/vendorcode/google/chromeos/chromeos.h @@ -39,6 +39,7 @@ extern int oprom_is_loaded; void read_vbnv(uint8_t *vbnv_copy); void save_vbnv(const uint8_t *vbnv_copy); +#if CONFIG_CHROMEOS /* functions implemented in chromeos.c: */ int developer_mode_enabled(void); int recovery_mode_enabled(void); @@ -46,6 +47,12 @@ int vboot_skip_display_init(void); /* functions implemented in vboot.c */ void init_chromeos(int bootmode); +#else +static inline int developer_mode_enabled(void) { return 0; } +static inline int recovery_mode_enabled(void) { return 0; } +static inline int vboot_skip_display_init(void) { return 0; } +static inline void init_chromeos(int bootmode) { } +#endif /* CONFIG_CHROMEOS */ struct romstage_handoff;