diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-10-11 05:11:36 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2007-10-11 05:11:36 -0400 |
commit | 6752ed90da032af72f2f1fa23d1abf0889b56db0 (patch) | |
tree | 4669080891000290c8ab2b3bfb1868b63fc26e36 /Makefile | |
parent | d7394fe57adbbd030c5a56f5f4579fe0478cdb9b (diff) |
Kbuild: allow arch/xxx to use a different source path
Preparatory patch for the source merge of arch/i386 and arch/x86_64
into arch/x86. This allows to keep the original arch directories as
stubs for the main Makefiles, Kconfigs et. al during the transition
phase while having the code in the new arch/x86 directory.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -186,7 +186,8 @@ ARCH ?= $(SUBARCH) | |||
186 | CROSS_COMPILE ?= | 186 | CROSS_COMPILE ?= |
187 | 187 | ||
188 | # Architecture as present in compile.h | 188 | # Architecture as present in compile.h |
189 | UTS_MACHINE := $(ARCH) | 189 | UTS_MACHINE := $(ARCH) |
190 | SRCARCH := $(ARCH) | ||
190 | 191 | ||
191 | KCONFIG_CONFIG ?= .config | 192 | KCONFIG_CONFIG ?= .config |
192 | 193 | ||
@@ -322,7 +323,7 @@ KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) | |||
322 | KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) | 323 | KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) |
323 | 324 | ||
324 | export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION | 325 | export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION |
325 | export ARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC | 326 | export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC |
326 | export CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE | 327 | export CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE |
327 | export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS | 328 | export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS |
328 | 329 | ||
@@ -609,7 +610,7 @@ libs-y := $(libs-y1) $(libs-y2) | |||
609 | vmlinux-init := $(head-y) $(init-y) | 610 | vmlinux-init := $(head-y) $(init-y) |
610 | vmlinux-main := $(core-y) $(libs-y) $(drivers-y) $(net-y) | 611 | vmlinux-main := $(core-y) $(libs-y) $(drivers-y) $(net-y) |
611 | vmlinux-all := $(vmlinux-init) $(vmlinux-main) | 612 | vmlinux-all := $(vmlinux-init) $(vmlinux-main) |
612 | vmlinux-lds := arch/$(ARCH)/kernel/vmlinux.lds | 613 | vmlinux-lds := arch/$(SRCARCH)/kernel/vmlinux.lds |
613 | export KBUILD_VMLINUX_OBJS := $(vmlinux-all) | 614 | export KBUILD_VMLINUX_OBJS := $(vmlinux-all) |
614 | 615 | ||
615 | # Rule to link vmlinux - also used during CONFIG_KALLSYMS | 616 | # Rule to link vmlinux - also used during CONFIG_KALLSYMS |