Skip to content

Commit c5a2aac

Browse files
eivindj-nordicnordicjm
authored andcommitted
net: lib: downloader: make sure at least one transport enabled
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]>
1 parent 636c3d5 commit c5a2aac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

subsys/net/lib/downloader/dl_transports.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
_dl_transport_entry_list_start = .;
44
KEEP(*(SORT_BY_NAME("._dl_transport_entry.*")));
55
_dl_transport_entry_list_end = .;
6+
7+
ASSERT(_dl_transport_entry_list_end != _dl_transport_entry_list_start,
8+
"No transport enabled for the downloader library. See downloader library Kconfig options.");

0 commit comments

Comments
 (0)