Message ID | ed99c37b653b909348a7e99e5fc51cf676008002.1691783604.git.falcon@tinylab.org |
---|---|
State | New |
Headers | show |
Series | selftests/nolibc: customize CROSS_COMPILE for all supported architectures | expand |
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),)
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(-)