summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2021-05-25 15:56:36 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-05-30 20:28:30 +0000
commit203698a4cb9101e9c649c990579a197c6693e2a0 (patch)
tree88cfaafa06dfb27fcc71e49a18b3556f7f5dcbae /tests
parent686018988c5f5416945c6fd2faad9953d86d66d6 (diff)
downloadcoreboot-203698a4cb9101e9c649c990579a197c6693e2a0.tar.gz
coreboot-203698a4cb9101e9c649c990579a197c6693e2a0.tar.bz2
coreboot-203698a4cb9101e9c649c990579a197c6693e2a0.zip
tests/Makefile.inc: Move generated headers to corresponding build dir
Test-local config override headers were generated to paths missing /tests/ infix, thus creating divergent tree in build output directory. This patch fixes it moving generated config headers to the test-local build directory. Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Change-Id: Ic5f3ba287ba3e9f5897cbaac64e88c2809f52d73 Reviewed-on: https://review.coreboot.org/c/coreboot/+/54917 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Makefile.inc b/tests/Makefile.inc
index 6cf92fa999c8..3473ef74d0b8 100644
--- a/tests/Makefile.inc
+++ b/tests/Makefile.inc
@@ -100,7 +100,7 @@ $(call evaluate_subdirs)
define TEST_CC_template
# Generate custom config.h redefining given symbols
-$(1)-config-file := $(obj)/$(1)/config.h
+$(1)-config-file := $(testobj)/$(1)/config.h
$$($(1)-config-file): $(TEST_KCONFIG_AUTOHEADER)
mkdir -p $$(dir $$@)
printf '// File generated by tests/Makefile.inc\n// Do not change\n' > $$@