diff options
author | Andrey Konovalov <andrey.konovalov@linaro.org> | 2013-06-10 23:35:33 +0400 |
---|---|---|
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | 2013-06-10 23:35:33 +0400 |
commit | c6604ff0db57c6fff152533a7ff2f6023f6b2ee0 (patch) | |
tree | 6cd75a6f5fbe8b368a6ae3f3e84ec69c6cbce2b4 /scripts/Kbuild.include | |
parent | 8f60de8ab2944bc8b12ba356f7e46ece789d3ee9 (diff) | |
parent | 892a9def3b2bdc293f0897392ba110b01de3eabf (diff) |
Merge branch 'tracking-llct-v3.10-misc-fixes' into merge-linux-linaro-core-trackingllct-20130610.0
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r-- | scripts/Kbuild.include | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 547e15daf03d..09aa90ce6e48 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -222,11 +222,15 @@ if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ $(echo-cmd) $(cmd_$(1)); \ echo 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd) +ifeq ($(KBUILD_SCRIPTROOT),) +KBUILD_SCRIPTROOT=. +endif + # Execute the command and also postprocess generated .d dependencies file. if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ @set -e; \ $(echo-cmd) $(cmd_$(1)); \ - scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\ + $(KBUILD_SCRIPTROOT)/scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\ rm -f $(depfile); \ mv -f $(dot-target).tmp $(dot-target).cmd) |