Skip to content

Commit

Permalink
platforms/nuttx/src/bootloader/common/image_toc.c: Support building b…
Browse files Browse the repository at this point in the history
…ootloader without TOC

If TOC_ADDRESS is not defined, assume that there is no TOC

Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Feb 14, 2024
1 parent 02a536e commit e119c3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions platforms/nuttx/src/bootloader/common/image_toc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@

#include "bl.h"

/* TOC doesn't exist if TOC_ADDRESS is not defined */

#ifdef TOC_ADDRESS

/* Helper macros to define flash start and end addresses, based on info from
* hw_config.h
*/
Expand Down Expand Up @@ -119,3 +123,5 @@ bool find_toc(const image_toc_entry_t **toc_entries, uint8_t *len)
*len = 0;
return false;
}

#endif // ifdef TOC_ADDRESS

0 comments on commit e119c3c

Please sign in to comment.