summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiafu He <jay@goldhive.com>2009-12-17 18:22:13 -0700
committerMichal Marek <mmarek@suse.cz>2010-02-02 14:33:54 +0100
commit4b024242e8a4e9679fa327ea03958b89f89096c9 (patch)
treeee82a61d2669f5828fee34269b1b71d49a803169
parentabe94c756c08d50566c09a65b9c7fe72f83071c5 (diff)
downloadop-kernel-dev-4b024242e8a4e9679fa327ea03958b89f89096c9.zip
op-kernel-dev-4b024242e8a4e9679fa327ea03958b89f89096c9.tar.gz
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>
-rw-r--r--scripts/Makefile.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 0b94d2f..e4deb73 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -82,7 +82,7 @@ ifneq ($(strip $(lib-y) $(lib-m) $(lib-n) $(lib-)),)
lib-target := $(obj)/lib.a
endif
-ifneq ($(strip $(obj-y) $(obj-m) $(obj-n) $(obj-) $(lib-target)),)
+ifneq ($(strip $(obj-y) $(obj-m) $(obj-n) $(obj-) $(subdir-m) $(lib-target)),)
builtin-target := $(obj)/built-in.o
endif
OpenPOWER on IntegriCloud