[PATCH 5/5] kbuild: create directory of .o files from shlib-objs notation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Assume we have a Makefile like this:

  hostprogs-y := foo
  foo-objs := bar.o baz.so
  baz-objs := qux/quux.o

In this case, Kbuild fails to create qux/ directory.

Signed-off-by: Masahiro Yamada <yamada.m@xxxxxxxxxxxxxxxx>
---
 scripts/Makefile.host | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/Makefile.host b/scripts/Makefile.host
index b0e1a64..4bb237b 100644
--- a/scripts/Makefile.host
+++ b/scripts/Makefile.host
@@ -68,6 +68,8 @@ host-objdirs := $(foreach f,$(__hostprogs), $(dir $(f)))
 host-objdirs += $(foreach f,$(__hostprogs),                   \
                     $(foreach m,$($(f)-objs) $($(f)-cxxobjs), \
                         $(dir $(m))))
+# directory of .o files from shlib-objs notation
+host-objdirs += $(foreach m,$(host-cshobjs), $(dir $(m)))
 
 host-objdirs := $(strip $(sort $(filter-out ./,$(host-objdirs))))
 
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux