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 18:44:00 +0100 |
commit | ac448afbcdcc218fd8d177960466ecc4a523722f (patch) | |
tree | 011d0e1fb714895817eaf930bb1e89b709c6b36e /Kbuild | |
parent | ae215b14bdbd459afe5f371175765fae817062a8 (diff) | |
download | linux-rpi3-ac448afbcdcc218fd8d177960466ecc4a523722f.tar.gz linux-rpi3-ac448afbcdcc218fd8d177960466ecc4a523722f.tar.bz2 linux-rpi3-ac448afbcdcc218fd8d177960466ecc4a523722f.zip |
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" quiet_cmd_offsets = GEN $@ define cmd_offsets - mkdir -p $(dir $@); \ - cat $< | \ (set -e; \ echo "#ifndef __ASM_OFFSETS_H__"; \ echo "#define __ASM_OFFSETS_H__"; \ @@ -34,7 +32,7 @@ define cmd_offsets echo " *"; \ echo " */"; \ echo ""; \ - sed -ne $(sed-y); \ + sed -ne $(sed-y) $<; \ echo ""; \ echo "#endif" ) > $@ endef @@ -45,5 +43,6 @@ arch/$(ARCH)/kernel/asm-offsets.s: arch/$(ARCH)/kernel/asm-offsets.c FORCE $(call if_changed_dep,cc_s_c) $(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild + $(Q)mkdir -p $(dir $@) $(call cmd,offsets) |