diff options
author | Sam Ravnborg | 2007-10-25 19:42:04 +0200 |
---|---|---|
committer | Sam Ravnborg | 2007-10-25 22:27:34 +0200 |
commit | 74b469f2e6b1589118b6ac05c7256add01e572d2 (patch) | |
tree | d963009bef4f36ae610dd56ca69961e0de9ee29c /Makefile | |
parent | Linux 2.6.24-rc1 (diff) | |
download | kernel-qcow2-linux-74b469f2e6b1589118b6ac05c7256add01e572d2.tar.gz kernel-qcow2-linux-74b469f2e6b1589118b6ac05c7256add01e572d2.tar.xz kernel-qcow2-linux-74b469f2e6b1589118b6ac05c7256add01e572d2.zip |
x86: move i386 and x86_64 Makefiles to arch/x86
Moving the ARCH specific Makefiles for i386 and x86_64
required a litle bit tweaking in the top-lvel Makefile.
SRCARCH is now set in the top-level Makefile
because we need this info to include the correct
arch Makefile.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -196,6 +196,9 @@ 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)) + KCONFIG_CONFIG ?= .config # SHELL used by kbuild @@ -418,7 +421,7 @@ ifeq ($(config-targets),1) # Read arch specific Makefile to set KBUILD_DEFCONFIG as needed. # KBUILD_DEFCONFIG may point out an alternative default configuration # used for 'make defconfig' -include $(srctree)/arch/$(ARCH)/Makefile +include $(srctree)/arch/$(SRCARCH)/Makefile export KBUILD_DEFCONFIG config %config: scripts_basic outputmakefile FORCE @@ -497,7 +500,7 @@ else KBUILD_CFLAGS += -O2 endif -include $(srctree)/arch/$(ARCH)/Makefile +include $(srctree)/arch/$(SRCARCH)/Makefile ifdef CONFIG_FRAME_POINTER KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls |