HAL_ChibiOS: don't build flash.c if not needed

This commit is contained in:
Andrew Tridgell 2018-03-03 13:57:46 +11:00
parent cdbbceb6b6
commit d1e4185817

View File

@ -57,6 +57,8 @@
this driver has been tested with STM32F427 and STM32F412 this driver has been tested with STM32F427 and STM32F412
*/ */
#ifndef HAL_USE_EMPTY_STORAGE
#ifndef BOARD_FLASH_SIZE #ifndef BOARD_FLASH_SIZE
#error "You must define BOARD_FLASH_SIZE in kbyte" #error "You must define BOARD_FLASH_SIZE in kbyte"
#endif #endif
@ -322,3 +324,5 @@ failed:
#endif #endif
return -1; return -1;
} }
#endif // HAL_USE_EMPTY_STORAGE