aboutsummaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
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 @@
4# 1) Generate asm-offsets.h 4# 1) Generate asm-offsets.h
5 5
6##### 6#####
7# 1) Generate asm-offsets.h 7# 1) Generate asm-offsets.h
8# 8#
9 9
10offsets-file := include/asm-$(ARCH)/asm-offsets.h 10offsets-file := include/asm-$(ARCH)/asm-offsets.h
@@ -22,6 +22,7 @@ sed-$(CONFIG_MIPS) := "/^@@@/s///p"
22 22
23quiet_cmd_offsets = GEN $@ 23quiet_cmd_offsets = GEN $@
24define cmd_offsets 24define cmd_offsets
25 mkdir -p $(dir $@); \
25 cat $< | \ 26 cat $< | \
26 (set -e; \ 27 (set -e; \
27 echo "#ifndef __ASM_OFFSETS_H__"; \ 28 echo "#ifndef __ASM_OFFSETS_H__"; \
@@ -43,6 +44,6 @@ arch/$(ARCH)/kernel/asm-offsets.s: arch/$(ARCH)/kernel/asm-offsets.c FORCE
43 $(Q)mkdir -p $(dir $@) 44 $(Q)mkdir -p $(dir $@)
44 $(call if_changed_dep,cc_s_c) 45 $(call if_changed_dep,cc_s_c)
45 46
46$(srctree)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild 47$(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild
47 $(call cmd,offsets) 48 $(call cmd,offsets)
48 49