diff options
Diffstat (limited to 'Kbuild')
-rw-r--r-- | Kbuild | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8,11 +8,11 @@ | |||
8 | # 1) Generate asm-offsets.h | 8 | # 1) Generate asm-offsets.h |
9 | # | 9 | # |
10 | 10 | ||
11 | offsets-file := include/asm-$(ARCH)/asm-offsets.h | 11 | offsets-file := include/asm-$(SRCARCH)/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 | ||