x86: do not use $(ARCH) when not needed
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / Makefile
index e28dde8887d7a50d242f7fc94d165f8de9358dc7..b32963adfb9548d38ce5f36048ca9edfb9c78349 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -197,8 +197,13 @@ CROSS_COMPILE      ?=
 UTS_MACHINE    := $(ARCH)
 SRCARCH        := $(ARCH)
 
-# for i386 and x86_64 we use SRCARCH equal to x86
-SRCARCH := $(if $(filter x86_64 i386,$(SRCARCH)),x86,$(SRCARCH))
+# Additional ARCH settings for x86
+ifeq ($(ARCH),i386)
+        SRCARCH := x86
+endif
+ifeq ($(ARCH),x86_64)
+        SRCARCH := x86
+endif
 
 KCONFIG_CONFIG ?= .config