summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBill XIE <persmule@hardenedlinux.org>2022-07-09 10:16:20 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-07-14 23:08:24 +0000
commit348909a574b9f8d74bd651bbecc7fece179c831d (patch)
treeea406e418f43f8bea159bd6976e37abe8094acb2 /tests
parentac136250b26ddcb54d61ed8428f110b607cb3c88 (diff)
tests: Adjust the order of header files to include
Consistent with real build process, it retains more potential to detect the build environment. Signed-off-by: Bill XIE <persmule@hardenedlinux.org> Change-Id: I46f2fe04bf1b8c1ca6476f05555114fa1ef2a96e Reviewed-on: https://review.coreboot.org/c/coreboot/+/65728 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.common5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Makefile.common b/tests/Makefile.common
index 03ae7c4aa0..5cf0446073 100644
--- a/tests/Makefile.common
+++ b/tests/Makefile.common
@@ -26,9 +26,10 @@ TEST_KCONFIG_DEPENDENCIES := $(testobj)/auto.conf.cmd
TEST_KCONFIG_SPLITCONFIG := $(testobj)/config/
TEST_KCONFIG_TRISTATE := $(testobj)/tristate.conf
+# Include order should be same as in real build
TEST_CFLAGS := -include $(src)/include/kconfig.h \
- -include $(src)/commonlib/bsd/include/commonlib/bsd/compiler.h \
- -include $(src)/include/rules.h
+ -include $(src)/include/rules.h \
+ -include $(src)/commonlib/bsd/include/commonlib/bsd/compiler.h
# Include generic test mock headers, before original ones
TEST_CFLAGS += -I$(testsrc)/include/mocks -I$(testsrc)/include