diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -196,6 +196,9 @@ CROSS_COMPILE ?= | |||
196 | UTS_MACHINE := $(ARCH) | 196 | UTS_MACHINE := $(ARCH) |
197 | SRCARCH := $(ARCH) | 197 | SRCARCH := $(ARCH) |
198 | 198 | ||
199 | # for i386 and x86_64 we use SRCARCH equal to x86 | ||
200 | SRCARCH := $(if $(filter x86_64 i386,$(SRCARCH)),x86,$(SRCARCH)) | ||
201 | |||
199 | KCONFIG_CONFIG ?= .config | 202 | KCONFIG_CONFIG ?= .config |
200 | 203 | ||
201 | # SHELL used by kbuild | 204 | # SHELL used by kbuild |
@@ -418,7 +421,7 @@ ifeq ($(config-targets),1) | |||
418 | # Read arch specific Makefile to set KBUILD_DEFCONFIG as needed. | 421 | # Read arch specific Makefile to set KBUILD_DEFCONFIG as needed. |
419 | # KBUILD_DEFCONFIG may point out an alternative default configuration | 422 | # KBUILD_DEFCONFIG may point out an alternative default configuration |
420 | # used for 'make defconfig' | 423 | # used for 'make defconfig' |
421 | include $(srctree)/arch/$(ARCH)/Makefile | 424 | include $(srctree)/arch/$(SRCARCH)/Makefile |
422 | export KBUILD_DEFCONFIG | 425 | export KBUILD_DEFCONFIG |
423 | 426 | ||
424 | config %config: scripts_basic outputmakefile FORCE | 427 | config %config: scripts_basic outputmakefile FORCE |
@@ -497,7 +500,7 @@ else | |||
497 | KBUILD_CFLAGS += -O2 | 500 | KBUILD_CFLAGS += -O2 |
498 | endif | 501 | endif |
499 | 502 | ||
500 | include $(srctree)/arch/$(ARCH)/Makefile | 503 | include $(srctree)/arch/$(SRCARCH)/Makefile |
501 | 504 | ||
502 | ifdef CONFIG_FRAME_POINTER | 505 | ifdef CONFIG_FRAME_POINTER |
503 | KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls | 506 | KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls |