diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-06-22 21:42:06 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-07-25 22:12:34 +0200 |
commit | 2e57d051160dd61776461637f767df19036b1186 (patch) | |
tree | fc167eb026320e6aa9ecd1990e62ce0ee100572d /Kbuild | |
parent | a53ce098a763a33311b60c53161572f5789d5594 (diff) | |
download | talos-op-linux-2e57d051160dd61776461637f767df19036b1186.tar.gz talos-op-linux-2e57d051160dd61776461637f767df19036b1186.zip |
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 # 2) Generate asm-offsets.h # -offsets-file := include/asm-$(SRCARCH)/asm-offsets.h +offsets-file := include/asm/asm-offsets.h always += $(offsets-file) targets += $(offsets-file) @@ -81,7 +81,6 @@ arch/$(SRCARCH)/kernel/asm-offsets.s: arch/$(SRCARCH)/kernel/asm-offsets.c \ $(call if_changed_dep,cc_s_c) $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild - $(Q)mkdir -p $(dir $@) $(call cmd,offsets) ##### |