From 203698a4cb9101e9c649c990579a197c6693e2a0 Mon Sep 17 00:00:00 2001 From: Jakub Czapiga Date: Tue, 25 May 2021 15:56:36 +0200 Subject: 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 Change-Id: Ic5f3ba287ba3e9f5897cbaac64e88c2809f52d73 Reviewed-on: https://review.coreboot.org/c/coreboot/+/54917 Tested-by: build bot (Jenkins) Reviewed-by: Paul Fagerburg --- tests/Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/Makefile.inc b/tests/Makefile.inc index 6cf92fa999..3473ef74d0 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' > $$@ -- cgit v1.2.3