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@xxxxxxxxxxx> --- tools/testing/selftests/nolibc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 9a787fdf9842..7687988c780b 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -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),) -- 2.25.1