diff options
-rw-r--r-- | scripts/Makefile.host | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/Makefile.host b/scripts/Makefile.host index 2d519704b8fd..2b066d12af2c 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host | |||
@@ -33,8 +33,8 @@ | |||
33 | __hostprogs := $(sort $(hostprogs-y)$(hostprogs-m)) | 33 | __hostprogs := $(sort $(hostprogs-y)$(hostprogs-m)) |
34 | 34 | ||
35 | # hostprogs-y := tools/build may have been specified. Retreive directory | 35 | # hostprogs-y := tools/build may have been specified. Retreive directory |
36 | obj-dirs += $(foreach f,$(__hostprogs), $(if $(dir $(f)),$(dir $(f)))) | 36 | host-objdirs := $(foreach f,$(__hostprogs), $(if $(dir $(f)),$(dir $(f)))) |
37 | obj-dirs := $(strip $(sort $(filter-out ./,$(obj-dirs)))) | 37 | host-objdirs := $(strip $(sort $(filter-out ./,$(host-objdirs)))) |
38 | 38 | ||
39 | 39 | ||
40 | # C code | 40 | # C code |
@@ -73,7 +73,9 @@ host-cxxmulti := $(addprefix $(obj)/,$(host-cxxmulti)) | |||
73 | host-cxxobjs := $(addprefix $(obj)/,$(host-cxxobjs)) | 73 | host-cxxobjs := $(addprefix $(obj)/,$(host-cxxobjs)) |
74 | host-cshlib := $(addprefix $(obj)/,$(host-cshlib)) | 74 | host-cshlib := $(addprefix $(obj)/,$(host-cshlib)) |
75 | host-cshobjs := $(addprefix $(obj)/,$(host-cshobjs)) | 75 | host-cshobjs := $(addprefix $(obj)/,$(host-cshobjs)) |
76 | obj-dirs := $(addprefix $(obj)/,$(obj-dirs)) | 76 | host-objdirs := $(addprefix $(obj)/,$(host-objdirs)) |
77 | |||
78 | obj-dirs += $(host-objdirs) | ||
77 | 79 | ||
78 | ##### | 80 | ##### |
79 | # Handle options to gcc. Support building with separate output directory | 81 | # Handle options to gcc. Support building with separate output directory |