diff options
Diffstat (limited to 'scripts/Makefile.host')
-rw-r--r-- | scripts/Makefile.host | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/scripts/Makefile.host b/scripts/Makefile.host index 1c2e57000f5a..bb6a11f4f193 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host | |||
@@ -44,15 +44,11 @@ host-cxxobjs := $(sort $(foreach m,$(host-cxxmulti),$($(m)-cxxobjs))) | |||
44 | 44 | ||
45 | # output directory for programs/.o files | 45 | # output directory for programs/.o files |
46 | # hostprogs-y := tools/build may have been specified. Retrieve directory | 46 | # hostprogs-y := tools/build may have been specified. Retrieve directory |
47 | host-objdirs := $(foreach f,$(__hostprogs), $(if $(dir $(f)),$(dir $(f)))) | 47 | host-objdirs := $(dir $(__hostprogs)) |
48 | # directory of .o files from prog-objs notation | 48 | # directory of .o files from prog-objs notation |
49 | host-objdirs += $(foreach f,$(host-cmulti), \ | 49 | host-objdirs += $(dir $(foreach f,$(host-cmulti), $($(f)-objs))) |
50 | $(foreach m,$($(f)-objs), \ | ||
51 | $(if $(dir $(m)),$(dir $(m))))) | ||
52 | # directory of .o files from prog-cxxobjs notation | 50 | # directory of .o files from prog-cxxobjs notation |
53 | host-objdirs += $(foreach f,$(host-cxxmulti), \ | 51 | host-objdirs += $(dir $(foreach f,$(host-cxxmulti), $($(f)-cxxobjs))) |
54 | $(foreach m,$($(f)-cxxobjs), \ | ||
55 | $(if $(dir $(m)),$(dir $(m))))) | ||
56 | 52 | ||
57 | host-objdirs := $(strip $(sort $(filter-out ./,$(host-objdirs)))) | 53 | host-objdirs := $(strip $(sort $(filter-out ./,$(host-objdirs)))) |
58 | 54 | ||