Provide selfboot() external declaration in a common file

The earlier compilation warning fix (7e4aa17) incorrectly assumed that
selfboot() is a function defined in the cbfs driver. This is a
commonly available function, it should not come from cbfs.h.

BUG=none
TEST=the following command succeeds:
  $ for b in rambi storm nyan_big; do
       cros_workon-$b start libpayload
       emerge-$b libpayload || break
     done

Change-Id: I3ef49d849168ad9dc24589cbd9ce7382052345bd
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/201386
This commit is contained in:
Vadim Bendebury 2014-05-23 14:37:10 -07:00 committed by chrome-internal-fetch
commit d5090e8410
2 changed files with 3 additions and 6 deletions

View file

@ -81,9 +81,6 @@ void *cbfs_simple_buffer_unmap(struct cbfs_simple_buffer *buffer,
// Utility functions
int run_address(void *f);
/* Defined in src/lib/selfboot.c */
void selfboot(void *entry);
/* Defined in individual arch / board implementation. */
int init_default_cbfs_media(struct cbfs_media *media);

View file

@ -60,9 +60,6 @@
#ifdef CONFIG_LP_LAR
#include <lar.h>
#endif
#ifdef CONFIG_LP_CBFS
#include <cbfs.h>
#endif
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b))
@ -445,4 +442,7 @@ char *readline(const char *prompt);
int getline(char *buffer, int len);
/** @} */
/* Defined in arch/${ARCH}/selfboot.c */
void selfboot(void *entry);
#endif