aboutsummaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2007-10-11 11:11:36 +0200
committerThomas Gleixner <tglx@linutronix.de>2007-10-11 11:11:36 +0200
commit6752ed90da032af72f2f1fa23d1abf0889b56db0 (patch)
tree4669080891000290c8ab2b3bfb1868b63fc26e36 /Kbuild
parentd7394fe57adbbd030c5a56f5f4579fe0478cdb9b (diff)
downloadkernel_samsung_smdk4412-6752ed90da032af72f2f1fa23d1abf0889b56db0.zip
kernel_samsung_smdk4412-6752ed90da032af72f2f1fa23d1abf0889b56db0.tar.gz
kernel_samsung_smdk4412-6752ed90da032af72f2f1fa23d1abf0889b56db0.tar.bz2
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 'Kbuild')
-rw-r--r--Kbuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kbuild b/Kbuild
index 56b8edf..2d403cf 100644
--- a/Kbuild
+++ b/Kbuild
@@ -12,7 +12,7 @@ offsets-file := include/asm-$(ARCH)/asm-offsets.h
always := $(offsets-file)
targets := $(offsets-file)
-targets += arch/$(ARCH)/kernel/asm-offsets.s
+targets += arch/$(SRCARCH)/kernel/asm-offsets.s
clean-files := $(addprefix $(objtree)/,$(targets))
# Default sed regexp - multiline due to syntax constraints
@@ -40,11 +40,11 @@ define cmd_offsets
endef
# We use internal kbuild rules to avoid the "is up to date" message from make
-arch/$(ARCH)/kernel/asm-offsets.s: arch/$(ARCH)/kernel/asm-offsets.c FORCE
+arch/$(SRCARCH)/kernel/asm-offsets.s: arch/$(SRCARCH)/kernel/asm-offsets.c FORCE
$(Q)mkdir -p $(dir $@)
$(call if_changed_dep,cc_s_c)
-$(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild
+$(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild
$(Q)mkdir -p $(dir $@)
$(call cmd,offsets)