diff options
author | Brian Gerst <bgerst@didntduck.org> | 2006-01-06 18:28:45 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-01-08 12:44:00 -0500 |
commit | ac448afbcdcc218fd8d177960466ecc4a523722f (patch) | |
tree | 011d0e1fb714895817eaf930bb1e89b709c6b36e /Kbuild | |
parent | ae215b14bdbd459afe5f371175765fae817062a8 (diff) |
kbuild: clean up asm-offsets.h creation
- Move mkdir out of cmd_offsets
- Add input file to sed command instead of using cat
Signed-off-by: Brian Gerst <bgerst@didntduck.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Kbuild')
-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 | ||