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 /Kbuild | |
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 'Kbuild')
-rw-r--r-- | Kbuild | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -12,7 +12,7 @@ offsets-file := include/asm-$(ARCH)/asm-offsets.h | |||
12 | 12 | ||
13 | always := $(offsets-file) | 13 | always := $(offsets-file) |
14 | targets := $(offsets-file) | 14 | targets := $(offsets-file) |
15 | targets += arch/$(ARCH)/kernel/asm-offsets.s | 15 | targets += arch/$(SRCARCH)/kernel/asm-offsets.s |
16 | clean-files := $(addprefix $(objtree)/,$(targets)) | 16 | clean-files := $(addprefix $(objtree)/,$(targets)) |
17 | 17 | ||
18 | # Default sed regexp - multiline due to syntax constraints | 18 | # Default sed regexp - multiline due to syntax constraints |
@@ -40,11 +40,11 @@ define cmd_offsets | |||
40 | endef | 40 | endef |
41 | 41 | ||
42 | # We use internal kbuild rules to avoid the "is up to date" message from make | 42 | # We use internal kbuild rules to avoid the "is up to date" message from make |
43 | arch/$(ARCH)/kernel/asm-offsets.s: arch/$(ARCH)/kernel/asm-offsets.c FORCE | 43 | arch/$(SRCARCH)/kernel/asm-offsets.s: arch/$(SRCARCH)/kernel/asm-offsets.c FORCE |
44 | $(Q)mkdir -p $(dir $@) | 44 | $(Q)mkdir -p $(dir $@) |
45 | $(call if_changed_dep,cc_s_c) | 45 | $(call if_changed_dep,cc_s_c) |
46 | 46 | ||
47 | $(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild | 47 | $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild |
48 | $(Q)mkdir -p $(dir $@) | 48 | $(Q)mkdir -p $(dir $@) |
49 | $(call cmd,offsets) | 49 | $(call cmd,offsets) |
50 | 50 | ||