Skip to content

Commit

Permalink
net: lib: downloader: make sure at least one transport enabled
Browse files Browse the repository at this point in the history
The downloader library require at least one transport to be enabled.
Add build assert when downloader library is enabled without any
transport.

Signed-off-by: Eivind Jølsgard <[email protected]>
  • Loading branch information
eivindj-nordic committed Jan 9, 2025
1 parent 9299b43 commit dd2bf19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions subsys/net/lib/downloader/dl_transports.ld
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
_dl_transport_entry_list_start = .;
KEEP(*(SORT_BY_NAME("._dl_transport_entry.*")));
_dl_transport_entry_list_end = .;

ASSERT(_dl_transport_entry_list_end != _dl_transport_entry_list_start,
"No transport enabled for the downloader library. See downloader library Kconfig options.");

0 comments on commit dd2bf19

Please sign in to comment.