Skip to content

Commit 52e1f2c

Browse files
committed
Exclude BlockDevice::get_default_instance() building libbootutil
The correct implementation is already available in libmbed.a
1 parent d2194ce commit 52e1f2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/default_bd.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,13 @@ mbed::BlockDevice* get_scratch_bd(void) {
395395
return nullptr;
396396
}
397397

398+
#if !defined(BOOTUTIL_LIBARY_BUILD)
398399
mbed::BlockDevice* BlockDevice::get_default_instance()
399400
{
400401
static QSPIFBlockDevice default_bd(BOARD_QSPI_SO0, BOARD_QSPI_SO1, BOARD_QSPI_SO2, BOARD_QSPI_SO3, BOARD_QSPI_SCK, BOARD_QSPI_CS, QSPIF_POLARITY_MODE_1, 40000000);
401402
return &default_bd;
402403
}
404+
#endif
403405

404406
FlashIAP flash;
405407

0 commit comments

Comments
 (0)