summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-06-22 21:42:06 +0200
committerSam Ravnborg <sam@ravnborg.org>2008-07-25 22:12:34 +0200
commit2e57d051160dd61776461637f767df19036b1186 (patch)
treefc167eb026320e6aa9ecd1990e62ce0ee100572d /Kbuild
parenta53ce098a763a33311b60c53161572f5789d5594 (diff)
downloadop-kernel-dev-2e57d051160dd61776461637f767df19036b1186.zip
op-kernel-dev-2e57d051160dd61776461637f767df19036b1186.tar.gz
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--Kbuild3
1 files changed, 1 insertions, 2 deletions
diff --git a/Kbuild b/Kbuild
index e750e9c..f056b4f 100644
--- a/Kbuild
+++ b/Kbuild
@@ -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)
#####
OpenPOWER on IntegriCloud