kbuild: Fix linking error built-in.o no such file or directory
authorJiafu He <jay@goldhive.com>
Fri, 18 Dec 2009 01:22:13 +0000 (18:22 -0700)
committerMichal Marek <mmarek@suse.cz>
Tue, 2 Feb 2010 13:33:54 +0000 (14:33 +0100)
commit4b024242e8a4e9679fa327ea03958b89f89096c9
treeee82a61d2669f5828fee34269b1b71d49a803169
parentabe94c756c08d50566c09a65b9c7fe72f83071c5
kbuild: Fix linking error built-in.o no such file or directory

This patch fixes the link error "built-in.o: no such file or directory".
The problem happens if "dirx/Makefile" contains only "obj-m += diry/
dirz/" and the empty "dirx/built-in.o" is missing. Adding $(subdir-m)
into check for builtin-target fixes this error.

Signed-off-by: Jiafu He <jay@goldhive.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/Makefile.build