summaryrefslogtreecommitdiffstats
path: root/arch/arc/Makefile
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2021-08-17 02:21:06 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2021-09-03 01:17:20 +0200
commit43e6b58f793c47b0a6772a112e6586cd1e24b239 (patch)
tree686ae6a1896d3f7435c7e577a44b7e1c05211e7a /arch/arc/Makefile
parents390: replace cc-option-yn uses with cc-option (diff)
downloadlinux-43e6b58f793c47b0a6772a112e6586cd1e24b239.tar.xz
linux-43e6b58f793c47b0a6772a112e6586cd1e24b239.zip
arc: replace cc-option-yn uses with cc-option
cc-option-yn can be replaced with cc-option. ie. Checking for support: ifeq ($(call cc-option-yn,$(FLAG)),y) becomes: ifneq ($(call cc-option,$(FLAG)),) Checking for lack of support: ifeq ($(call cc-option-yn,$(FLAG)),n) becomes: ifeq ($(call cc-option,$(FLAG)),) This allows us to pursue removing cc-option-yn. Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'arch/arc/Makefile')
-rw-r--r--arch/arc/Makefile3
1 files changed, 1 insertions, 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