mk: Only build necessary tinycbor files

This speeds up the build and removes a warning from building an
unrelated file.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
This commit is contained in:
Felix Walter 2026-04-21 11:20:43 +02:00
parent df5775c07b
commit 0fb67f1682

View file

@ -38,14 +38,8 @@ CPPFLAGS += -DPB_ENABLE_MALLOC
$(eval $(call addComponentWithRules,external/nanopb,$(NANOPB_SOURCES)))
TINYCBOR_SOURCES := \
cborerrorstrings.c \
cborencoder.c \
cborencoder_close_container_checked.c \
cborparser.c \
cborparser_dup_string.c \
cborpretty.c \
cborpretty_stdio.c \
cbortojson.c
cborparser.c
$(eval $(call addComponentWithRules,external/tinycbor/src,$(TINYCBOR_SOURCES)))
$(eval $(call addComponentWithRules,external/util/src))