chip/stm32: Fix for opting out of flash support
Adapt dfu_bootmanager_main.c to compile without flash support.
TEST=make BOARD=hyperdebug
Tested-by: Jes Klinke
*/
static int rw_is_empty(void)
{
+ if (IS_ENABLED(CONFIG_FLASH_CROS))
return crec_flash_is_erased(CONFIG_RW_MEM_OFF, 8);
+ /* No flash support, we cannot tell. Assume not empty. */
+ return 0;
}
/*
