chromeos: provide stub functions for !CONFIG_VBOOT_VERIFY_FIRMWARE

Instead of checking #if CONFIG_VBOOT_VERIFY_FIRMWARE #else #endif
provide empty stub functions for !CONFIG_VBOOT_VERIFY_FIRMWARE.

BUG=none
BRANCH=baytrail
TEST=Built and booted.

Change-Id: Id9d1843a0ec47c5a186c9a22ea3e4c13c89ec379
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/184841
This commit is contained in:
Aaron Durbin 2014-02-04 12:38:41 -06:00 committed by chrome-internal-fetch
commit f6d95cf4ba
4 changed files with 6 additions and 12 deletions

View file

@ -21,6 +21,7 @@
#define __CHROMEOS_H__
#include <stdint.h>
#include <stddef.h>
/* functions implemented per mainboard: */
int get_developer_mode_switch(void);
@ -53,6 +54,11 @@ void *vboot_get_payload(int *len);
int vboot_get_handoff_info(void **addr, uint32_t *size);
#else
static inline void vboot_verify_firmware(struct romstage_handoff *h) {}
static inline void *vboot_get_payload(int *len) { return NULL; }
static inline int vboot_get_handoff_info(void **addr, uint32_t *size)
{
return -1;
}
#endif
#endif