Skip to content

Commit 47d4319

Browse files
committed
sw/tests: Enable easily extending INCDIRS
1 parent f5a3cff commit 47d4319

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sw/tests/tests.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ SN_TESTS_BUILDDIR ?= $(SN_ROOT)/sw/tests/build
1515
# Build variables #
1616
###################
1717

18+
SN_TESTS_INCDIRS += $(SN_RUNTIME_INCDIRS)
19+
1820
SN_TESTS_RISCV_CFLAGS += $(SN_RISCV_CFLAGS)
19-
SN_TESTS_RISCV_CFLAGS += $(addprefix -I,$(SN_RUNTIME_INCDIRS))
21+
SN_TESTS_RISCV_CFLAGS += $(addprefix -I,$(SN_TESTS_INCDIRS))
2022

2123
SN_RUNTIME_BASE_LD = $(SN_RUNTIME_DIR)/base.ld
2224
SN_RUNTIME_MEMORY_LD ?= $(SN_RUNTIME_SRCDIR)/memory.ld

0 commit comments

Comments
 (0)