diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-11-12 14:14:19 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2007-11-12 15:02:20 -0500 |
commit | d746d647f31bd3664f4a23985b78654129ffc1db (patch) | |
tree | 6caa461f889220551adb460e2f74b00d51c0e076 /arch/x86/Makefile | |
parent | 2a113281f5cd2febbab21a93c8943f8d3eece4d3 (diff) |
x86: do not use $(ARCH) when not needed
For x86 ARCH may say i386 or x86_64 and soon x86.
Rely on CONFIG_X64_32 to select between 32/64 or just
hardcode the value as appropriate.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Diffstat (limited to 'arch/x86/Makefile')
-rw-r--r-- | arch/x86/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 309597386a77..116b03a45636 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile | |||
@@ -1,12 +1,16 @@ | |||
1 | # Unified Makefile for i386 and x86_64 | 1 | # Unified Makefile for i386 and x86_64 |
2 | 2 | ||
3 | # select defconfig based on actual architecture | 3 | # select defconfig based on actual architecture |
4 | KBUILD_DEFCONFIG := $(ARCH)_defconfig | 4 | ifeq ($(ARCH),x86) |
5 | KBUILD_DEFCONFIG := i386_defconfig | ||
6 | else | ||
7 | KBUILD_DEFCONFIG := $(ARCH)_defconfig | ||
8 | endif | ||
5 | 9 | ||
6 | # # No need to remake these files | 10 | # No need to remake these files |
7 | $(srctree)/arch/x86/Makefile%: ; | 11 | $(srctree)/arch/x86/Makefile%: ; |
8 | 12 | ||
9 | ifeq ($(ARCH),i386) | 13 | ifeq ($(CONFIG_X86_32),y) |
10 | include $(srctree)/arch/x86/Makefile_32 | 14 | include $(srctree)/arch/x86/Makefile_32 |
11 | else | 15 | else |
12 | include $(srctree)/arch/x86/Makefile_64 | 16 | include $(srctree)/arch/x86/Makefile_64 |