Makefile: include tests/Makefile.include before ninja calculation
As the tests Makefile sets .ninja-goals we need it to be included before we do the calculations in the main Makefile. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> Message-ID: <20260526110243.470002-2-alex.bennee@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Alex Bennée committed
May 26, 2026 at 12:02 UTC
fd63125b9089610d63a53c11ff2fda6b53a2265d
1 file changed
+2
-2
Makefile
+2
-2
@@ -45,6 +45,8 @@ include config-host.mak
45
include Makefile.prereqs
46
Makefile.prereqs: config-host.mak
47
48
+include $(SRC_PATH)/tests/Makefile.include
49
+
50
# 0. ensure the build tree is okay
51
52
# Check that we're not trying to do an out-of-tree build from
@@ -180,8 +182,6 @@ endif # config-host.mak does not exist
182
183
SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory --quiet)
184
183
-include $(SRC_PATH)/tests/Makefile.include
184
-
185
all: recurse-all
186
187
SUBDIR_RULES=$(foreach t, all clean distclean, $(addsuffix /$(t), $(SUBDIRS)))