diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-09-10 21:05:36 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-09-10 21:05:36 +0200 |
commit | 8d36a62364b6b04dc7b0e9fe09f6968f4e5a1f0a (patch) | |
tree | 10d5400d627236f7308f13238fa6559ccd9d79d1 /Kbuild | |
parent | kbuild: add objectify (diff) | |
download | linux-8d36a62364b6b04dc7b0e9fe09f6968f4e5a1f0a.tar.xz linux-8d36a62364b6b04dc7b0e9fe09f6968f4e5a1f0a.zip |
kbuild: fix generic asm-offsets.h support
iThis fixes a bug where the generated asm-offsets.h file was saved in
the source tree even with make O=.
Thanks to Stephen Rothwell <sfr@canb.auug.org.au> for the report.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Kbuild')
-rw-r--r-- | Kbuild | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,7 +4,7 @@ # 1) Generate asm-offsets.h ##### -# 1) Generate asm-offsets.h +# 1) Generate asm-offsets.h # offsets-file := include/asm-$(ARCH)/asm-offsets.h @@ -22,6 +22,7 @@ sed-$(CONFIG_MIPS) := "/^@@@/s///p" quiet_cmd_offsets = GEN $@ define cmd_offsets + mkdir -p $(dir $@); \ cat $< | \ (set -e; \ echo "#ifndef __ASM_OFFSETS_H__"; \ @@ -43,6 +44,6 @@ arch/$(ARCH)/kernel/asm-offsets.s: arch/$(ARCH)/kernel/asm-offsets.c FORCE $(Q)mkdir -p $(dir $@) $(call if_changed_dep,cc_s_c) -$(srctree)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild +$(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild $(call cmd,offsets) |