diff options
author | Jiafu He <jay@goldhive.com> | 2009-12-17 20:22:13 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-02-02 08:33:54 -0500 |
commit | 4b024242e8a4e9679fa327ea03958b89f89096c9 (patch) | |
tree | ee82a61d2669f5828fee34269b1b71d49a803169 | |
parent | abe94c756c08d50566c09a65b9c7fe72f83071c5 (diff) |
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.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 0b94d2fa3a88..e4deb73e9a84 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -82,7 +82,7 @@ ifneq ($(strip $(lib-y) $(lib-m) $(lib-n) $(lib-)),) | |||
82 | lib-target := $(obj)/lib.a | 82 | lib-target := $(obj)/lib.a |
83 | endif | 83 | endif |
84 | 84 | ||
85 | ifneq ($(strip $(obj-y) $(obj-m) $(obj-n) $(obj-) $(lib-target)),) | 85 | ifneq ($(strip $(obj-y) $(obj-m) $(obj-n) $(obj-) $(subdir-m) $(lib-target)),) |
86 | builtin-target := $(obj)/built-in.o | 86 | builtin-target := $(obj)/built-in.o |
87 | endif | 87 | endif |
88 | 88 | ||