diff options
-rw-r--r-- | payloads/libpayload/arch/arm/dummy_media.c | 3 | ||||
-rw-r--r-- | payloads/libpayload/arch/arm64/dummy_media.c | 3 | ||||
-rw-r--r-- | payloads/libpayload/arch/mips/dummy_media.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/payloads/libpayload/arch/arm/dummy_media.c b/payloads/libpayload/arch/arm/dummy_media.c index 7926976422..c67344f2eb 100644 --- a/payloads/libpayload/arch/arm/dummy_media.c +++ b/payloads/libpayload/arch/arm/dummy_media.c @@ -36,7 +36,8 @@ 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; } diff --git a/payloads/libpayload/arch/arm64/dummy_media.c b/payloads/libpayload/arch/arm64/dummy_media.c index 7926976422..c67344f2eb 100644 --- a/payloads/libpayload/arch/arm64/dummy_media.c +++ b/payloads/libpayload/arch/arm64/dummy_media.c @@ -36,7 +36,8 @@ 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; } diff --git a/payloads/libpayload/arch/mips/dummy_media.c b/payloads/libpayload/arch/mips/dummy_media.c index 539773dd8e..112d7feec8 100644 --- a/payloads/libpayload/arch/mips/dummy_media.c +++ b/payloads/libpayload/arch/mips/dummy_media.c @@ -35,7 +35,8 @@ 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; } |