From: Brian Gerst Date: Fri, 6 Jan 2006 23:28:45 +0000 (-0500) Subject: kbuild: clean up asm-offsets.h creation X-Git-Tag: v2.6.16-rc1~474^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ac448afbcdcc218fd8d177960466ecc4a523722f;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Sam Ravnborg --- diff --git a/Kbuild b/Kbuild index 79003918f37..95d6a00bace 100644 --- a/Kbuild +++ b/Kbuild @@ -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)