From 723b91851f0c332562069e01001e10a8941b4d6e Mon Sep 17 00:00:00 2001 From: xucheng5 Date: Tue, 20 Jun 2023 19:50:28 +0800 Subject: [PATCH] app/ltp : enable can_filter/can_rcv_own_msgs Signed-off-by: xucheng5 --- testing/ltp/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testing/ltp/Makefile b/testing/ltp/Makefile index 71684ca33..292fed562 100644 --- a/testing/ltp/Makefile +++ b/testing/ltp/Makefile @@ -247,6 +247,12 @@ $(foreach BATCH, $(MAINCSRC_SPILT_TOTAL), \ endif 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 STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE) MODULE = $(CONFIG_TESTING_LTP) @@ -254,6 +260,7 @@ MODULE = $(CONFIG_TESTING_LTP) CSRCS := $(LTP_CSRCS) CFLAGS += -I$(CURDIR) CFLAGS += -I$(TESTDIR)/include +CFLAGS += -I$(TESTDIR)/../../include endif # Relax warning checks to avoid expected compile errors: