From 25c737d403818a92dfeb06e29ffaf04102d0f260 Mon Sep 17 00:00:00 2001 From: Maximilian Brune Date: Thu, 9 May 2024 02:53:51 +0200 Subject: tests/lib: Factor out file related functions Signed-off-by: Maximilian Brune Change-Id: I5c22913b35848c5ea32d6805ea081abefd3380bf Reviewed-on: https://review.coreboot.org/c/coreboot/+/82237 Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) Reviewed-by: Jakub Czapiga --- tests/Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/Makefile.common') diff --git a/tests/Makefile.common b/tests/Makefile.common index d6c9bd60fc..e856fe07c1 100644 --- a/tests/Makefile.common +++ b/tests/Makefile.common @@ -60,6 +60,7 @@ TEST_CFLAGS += -Os endif TEST_CFLAGS += -D__TEST__ -D__COREBOOT__ +TEST_CFLAGS += -D__TEST_DATA_DIR__=\"$(testsrc)/data\" ifneq ($(filter-out 0,$(TEST_PRINT)),) TEST_CFLAGS += -DTEST_PRINT=1 @@ -121,7 +122,6 @@ $$($(1)-config-file): $(TEST_KCONFIG_AUTOHEADER) $($(1)-objs): TEST_CFLAGS += -I$$(dir $$($(1)-config-file)) \ -D__$$(shell echo $$($(1)-stage) | tr '[:lower:]' '[:upper:]')__ \ -D__TEST_NAME__=\"$(subst /,_,$(1))\" \ - -D__TEST_DATA_DIR__=\"$(testsrc)/data\" # Give us a way to distinguish between coreboot source files and test files in code. $($(1)-srcobjs): TEST_CFLAGS += -D__TEST_SRCOBJ__ -- cgit v1.2.3