diff options
-rw-r--r-- | Kbuild | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -22,8 +22,6 @@ sed-$(CONFIG_MIPS) := "/^@@@/s///p" | |||
22 | 22 | ||
23 | quiet_cmd_offsets = GEN $@ | 23 | quiet_cmd_offsets = GEN $@ |
24 | define cmd_offsets | 24 | define cmd_offsets |
25 | mkdir -p $(dir $@); \ | ||
26 | cat $< | \ | ||
27 | (set -e; \ | 25 | (set -e; \ |
28 | echo "#ifndef __ASM_OFFSETS_H__"; \ | 26 | echo "#ifndef __ASM_OFFSETS_H__"; \ |
29 | echo "#define __ASM_OFFSETS_H__"; \ | 27 | echo "#define __ASM_OFFSETS_H__"; \ |
@@ -34,7 +32,7 @@ define cmd_offsets | |||
34 | echo " *"; \ | 32 | echo " *"; \ |
35 | echo " */"; \ | 33 | echo " */"; \ |
36 | echo ""; \ | 34 | echo ""; \ |
37 | sed -ne $(sed-y); \ | 35 | sed -ne $(sed-y) $<; \ |
38 | echo ""; \ | 36 | echo ""; \ |
39 | echo "#endif" ) > $@ | 37 | echo "#endif" ) > $@ |
40 | endef | 38 | endef |
@@ -45,5 +43,6 @@ arch/$(ARCH)/kernel/asm-offsets.s: arch/$(ARCH)/kernel/asm-offsets.c FORCE | |||
45 | $(call if_changed_dep,cc_s_c) | 43 | $(call if_changed_dep,cc_s_c) |
46 | 44 | ||
47 | $(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild | 45 | $(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild |
46 | $(Q)mkdir -p $(dir $@) | ||
48 | $(call cmd,offsets) | 47 | $(call cmd,offsets) |
49 | 48 | ||