[v2,6/7] selftests/nolibc: import cc-cross-prefix macro
Commit Message
cc-cross-prefix is required to return first <prefix> where a <prefix>gcc
is found in PATH, this allows to customize more than one cross compiler.
Since scripts/Makefile.compiler provides cc-option too, let's use it
instead of tools/build/Build.include.
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
---
tools/testing/selftests/nolibc/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
# Makefile for nolibc tests
-# We need this for the "cc-option" macro.
-include ../../../build/Build.include
+# We need this for the "cc-option" and "cc-cross-prefix" macros.
+include ../../../../scripts/Makefile.compiler
# we're in ".../tools/testing/selftests/nolibc"
ifeq ($(srctree),)