Merge tag 'kbuild-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy...
[linux-2.6-microblaze.git] / arch / arc / Makefile
index e47adc9..8782a03 100644 (file)
@@ -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
@@ -85,9 +84,6 @@ KBUILD_LDFLAGS        += $(ldflags-y)
 
 head-y         := arch/arc/kernel/head.o
 
-# See arch/arc/Kbuild for content of core part of the kernel
-core-y         += arch/arc/
-
 # w/o this dtb won't embed into kernel binary
 core-y         += arch/arc/boot/dts/