cbfs: define libpayload_init_default_cbfs_media weakly
To allow a payload to define its own libpayload_init_default_cbfs_media, default implementation needs to be defined weakly. BUG=none BRANCH=tot TEST=dumped a cbfs file from depthcharge cli on jerry Change-Id: Ice73ae5a63dfd49e79c0eeb92d4eade016d61c39 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 1f308177fffb0d525fdb50f8d024568bb9025352 Original-Change-Id: I4721139aea3169c62c10a2a26582bd9277e4cb83 Original-Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/283061 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/10783 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
3740546bd8
commit
9150e5e0f2
|
@ -36,7 +36,8 @@
|
||||||
|
|
||||||
int libpayload_init_default_cbfs_media(struct cbfs_media *media);
|
int libpayload_init_default_cbfs_media(struct cbfs_media *media);
|
||||||
|
|
||||||
int libpayload_init_default_cbfs_media(struct cbfs_media *media)
|
__attribute__((weak)) int libpayload_init_default_cbfs_media(
|
||||||
|
struct cbfs_media *media)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,8 @@
|
||||||
|
|
||||||
int libpayload_init_default_cbfs_media(struct cbfs_media *media);
|
int libpayload_init_default_cbfs_media(struct cbfs_media *media);
|
||||||
|
|
||||||
int libpayload_init_default_cbfs_media(struct cbfs_media *media)
|
__attribute__((weak)) int libpayload_init_default_cbfs_media(
|
||||||
|
struct cbfs_media *media)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,8 @@
|
||||||
|
|
||||||
int libpayload_init_default_cbfs_media(struct cbfs_media *media);
|
int libpayload_init_default_cbfs_media(struct cbfs_media *media);
|
||||||
|
|
||||||
int libpayload_init_default_cbfs_media(struct cbfs_media *media)
|
__attribute__((weak)) int libpayload_init_default_cbfs_media(
|
||||||
|
struct cbfs_media *media)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue