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 <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/196265 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
3a9057b961
commit
b78ccada9a
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue