diff options
author | Maximilian Brune <maximilian.brune@9elements.com> | 2024-05-09 02:53:51 +0200 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2024-05-21 13:44:39 +0000 |
commit | 25c737d403818a92dfeb06e29ffaf04102d0f260 (patch) | |
tree | d27d4e1a366a8f8aab0e338d0f3ee577b640d339 /tests/Makefile.common | |
parent | 62a6188da5080d17afe33a2de9218c7313c2e64b (diff) |
tests/lib: Factor out file related functions
Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
Change-Id: I5c22913b35848c5ea32d6805ea081abefd3380bf
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82237
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jakub Czapiga <czapiga@google.com>
Diffstat (limited to 'tests/Makefile.common')
-rw-r--r-- | tests/Makefile.common | 2 |
1 files changed, 1 insertions, 1 deletions
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__ |