kbuild: handle the dependency of multi-objs hostprogs appropriately
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Tue, 19 Aug 2014 07:34:21 +0000 (16:34 +0900)
committerMichal Marek <mmarek@suse.cz>
Tue, 19 Aug 2014 08:26:20 +0000 (10:26 +0200)
commit97e3226e6e984c8cd9bed47010f30827a3ce816a
treec7ed17f810839c68d105c1bf79147336a0cddcb0
parentc8589d1e9e01debdb4f574afe7c585714353ad79
kbuild: handle the dependency of multi-objs hostprogs appropriately

Assume we have a Makefile like:

hostprogs-y := foo bar
foo-objs := foo1.o foo2.o
bar-objs := bar1.o bar2.o

Without this commit, the host program foo depends on all of
foo1.o foo2.o bar1.o bar2.o.

This commit allows to handle the dependency of each host program
separately.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/Makefile.host