app/ltp : enable can_filter/can_rcv_own_msgs

Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
This commit is contained in:
xucheng5 2023-06-20 19:50:28 +08:00 committed by Petro Karashchenko
parent 0f9605e143
commit 723b91851f

View File

@ -247,6 +247,12 @@ $(foreach BATCH, $(MAINCSRC_SPILT_TOTAL), \
endif endif
MAINSRC = $(LTP_MAINCSRCS) MAINSRC = $(LTP_MAINCSRCS)
ifneq ($(CONFIG_NET_CAN),)
PROGNAME += can_rcv_own_msgs
PROGNAME += can_filter
MAINSRC += $(TESTDIR)/../network/can/filter-tests/can_filter.c
MAINSRC += $(TESTDIR)/../network/can/filter-tests/can_rcv_own_msgs.c
endif
PRIORITY = SCHED_PRIORITY_DEFAULT PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE) STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
MODULE = $(CONFIG_TESTING_LTP) MODULE = $(CONFIG_TESTING_LTP)
@ -254,6 +260,7 @@ MODULE = $(CONFIG_TESTING_LTP)
CSRCS := $(LTP_CSRCS) CSRCS := $(LTP_CSRCS)
CFLAGS += -I$(CURDIR) CFLAGS += -I$(CURDIR)
CFLAGS += -I$(TESTDIR)/include CFLAGS += -I$(TESTDIR)/include
CFLAGS += -I$(TESTDIR)/../../include
endif endif
# Relax warning checks to avoid expected compile errors: # Relax warning checks to avoid expected compile errors: