diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-11-12 14:54:30 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2007-11-12 15:02:20 -0500 |
commit | daa93fab824f2b8c35bd11670c7fab2f32b2de5f (patch) | |
tree | 73e22e7faa28dd1ec034653918b8dd1922530c3d /Makefile | |
parent | d746d647f31bd3664f4a23985b78654129ffc1db (diff) |
x86: enable "make ARCH=x86"
After unification of the Kconfig files and
introducing K64BIT support in kconfig
it required only trivial changes to enable
"make ARCH=x86".
With this patch you can build for x86_64 in several ways:
1) make ARCH=x86_64
2) make ARCH=x86 K64BIT=y
3) make ARCH=x86 menuconfig
=> select 64-bit
Likewise for i386 with the addition that
i386 is default is you say ARCH=x86.
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 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -200,9 +200,11 @@ SRCARCH := $(ARCH) | |||
200 | # Additional ARCH settings for x86 | 200 | # Additional ARCH settings for x86 |
201 | ifeq ($(ARCH),i386) | 201 | ifeq ($(ARCH),i386) |
202 | SRCARCH := x86 | 202 | SRCARCH := x86 |
203 | K64BIT := n | ||
203 | endif | 204 | endif |
204 | ifeq ($(ARCH),x86_64) | 205 | ifeq ($(ARCH),x86_64) |
205 | SRCARCH := x86 | 206 | SRCARCH := x86 |
207 | K64BIT := y | ||
206 | endif | 208 | endif |
207 | 209 | ||
208 | KCONFIG_CONFIG ?= .config | 210 | KCONFIG_CONFIG ?= .config |
@@ -339,7 +341,7 @@ KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) | |||
339 | KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) | 341 | KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) |
340 | 342 | ||
341 | export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION | 343 | export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION |
342 | export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC | 344 | export ARCH SRCARCH K64BIT CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC |
343 | export CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE | 345 | export CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE |
344 | export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS | 346 | export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS |
345 | 347 | ||