author: Nick Desaulniers <ndesaulniers@google.com> 2021-08-16 17:21:06 -0700
committer: Masahiro Yamada <masahiroy@kernel.org> 2021-09-03 08:17:20 +0900
commit: 43e6b58f793c47b0a6772a112e6586cd1e24b239
parent: ff00f64bceb164267dccc3648eb299aeafd3a342
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 2 deletions
diff --git a/arch/arc/Makefile b/arch/arc/Makefile
index c0d87ac2e221..8782a03f24a8 100644
--- a/arch/arc/Makefile
+++ b/arch/arc/Makefile
@@ -18,8 +18,7 @@ ifeq ($(CONFIG_ARC_TUNE_MCPU),"")
cflags-y += $(tune-mcpu-def-y)
else
tune-mcpu := $(shell echo $(CONFIG_ARC_TUNE_MCPU))
-tune-mcpu-ok := $(call cc-option-yn, $(tune-mcpu))
-ifeq ($(tune-mcpu-ok),y)
+ifneq ($(call cc-option,$(tune-mcpu)),)
cflags-y += $(tune-mcpu)
else
# The flag provided by 'CONFIG_ARC_TUNE_MCPU' option isn't known by this compiler