summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-09-10 13:18:15 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-10 13:18:15 -0700
commit2b8dfec8c8fa4ba5bc946a602e94e99861462cad (patch)
treef73ad3c3224fb835a105c2f8ed5c1857ba5e753e /Kbuild
parent16b036786a6bd08cf7a91e0cd58219a6717da2a6 (diff)
parent8d36a62364b6b04dc7b0e9fe09f6968f4e5a1f0a (diff)
downloadblackbird-op-linux-2b8dfec8c8fa4ba5bc946a602e94e99861462cad.tar.gz
blackbird-op-linux-2b8dfec8c8fa4ba5bc946a602e94e99861462cad.zip
Merge master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild
Diffstat (limited to 'Kbuild')
-rw-r--r--Kbuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/Kbuild b/Kbuild
index 1880e6f760aa..79003918f37f 100644
--- a/Kbuild
+++ b/Kbuild
@@ -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)
OpenPOWER on IntegriCloud