aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Kbuild5
1 files changed, 2 insertions, 3 deletions
diff --git a/Kbuild b/Kbuild
index 79003918f37f..95d6a00bace0 100644
--- a/Kbuild
+++ b/Kbuild
@@ -22,8 +22,6 @@ 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 $@); \
26 cat $< | \
27 (set -e; \ 25 (set -e; \
28 echo "#ifndef __ASM_OFFSETS_H__"; \ 26 echo "#ifndef __ASM_OFFSETS_H__"; \
29 echo "#define __ASM_OFFSETS_H__"; \ 27 echo "#define __ASM_OFFSETS_H__"; \
@@ -34,7 +32,7 @@ define cmd_offsets
34 echo " *"; \ 32 echo " *"; \
35 echo " */"; \ 33 echo " */"; \
36 echo ""; \ 34 echo ""; \
37 sed -ne $(sed-y); \ 35 sed -ne $(sed-y) $<; \
38 echo ""; \ 36 echo ""; \
39 echo "#endif" ) > $@ 37 echo "#endif" ) > $@
40endef 38endef
@@ -45,5 +43,6 @@ arch/$(ARCH)/kernel/asm-offsets.s: arch/$(ARCH)/kernel/asm-offsets.c FORCE
45 $(call if_changed_dep,cc_s_c) 43 $(call if_changed_dep,cc_s_c)
46 44
47$(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild 45$(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild
46 $(Q)mkdir -p $(dir $@)
48 $(call cmd,offsets) 47 $(call cmd,offsets)
49 48