diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-06-22 15:42:06 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-07-25 16:12:34 -0400 |
commit | 2e57d051160dd61776461637f767df19036b1186 (patch) | |
tree | fc167eb026320e6aa9ecd1990e62ce0ee100572d /Kbuild | |
parent | a53ce098a763a33311b60c53161572f5789d5594 (diff) |
kbuild: asm symlink support for arch/$ARCH/include
Adjust the asm symlink support so we do not create the
symlink unless really needed.
We check the precense of include/asm-$ARCH by checking
for the system.h file. We may end up with a stale directory
so it is not enough to check if the directory is present.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Kbuild')
-rw-r--r-- | Kbuild | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -43,7 +43,7 @@ $(obj)/$(bounds-file): kernel/bounds.s Kbuild | |||
43 | # 2) Generate asm-offsets.h | 43 | # 2) Generate asm-offsets.h |
44 | # | 44 | # |
45 | 45 | ||
46 | offsets-file := include/asm-$(SRCARCH)/asm-offsets.h | 46 | offsets-file := include/asm/asm-offsets.h |
47 | 47 | ||
48 | always += $(offsets-file) | 48 | always += $(offsets-file) |
49 | targets += $(offsets-file) | 49 | targets += $(offsets-file) |
@@ -81,7 +81,6 @@ arch/$(SRCARCH)/kernel/asm-offsets.s: arch/$(SRCARCH)/kernel/asm-offsets.c \ | |||
81 | $(call if_changed_dep,cc_s_c) | 81 | $(call if_changed_dep,cc_s_c) |
82 | 82 | ||
83 | $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild | 83 | $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild |
84 | $(Q)mkdir -p $(dir $@) | ||
85 | $(call cmd,offsets) | 84 | $(call cmd,offsets) |
86 | 85 | ||
87 | ##### | 86 | ##### |